blob: 8b84cf1e1f97c3996188246847982cb4803248df [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GARNET_BIN_GUEST_VMM_PHYS_MEM_FAKE_H_
#define GARNET_BIN_GUEST_VMM_PHYS_MEM_FAKE_H_
#include "garnet/bin/guest/vmm/device/phys_mem.h"
class PhysMemFake : public PhysMem {
public:
PhysMemFake() {
vmo_size_ = SIZE_MAX;
addr_ = 0;
}
PhysMemFake(uintptr_t addr, size_t size) {
vmo_size_ = size;
addr_ = addr;
}
};
#endif // GARNET_BIN_GUEST_VMM_PHYS_MEM_FAKE_H_