blob: d194831f31b15a656982c4318c11247f28529c2f [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 SRC_VIRTUALIZATION_BIN_VMM_PHYS_MEM_FAKE_H_
#define SRC_VIRTUALIZATION_BIN_VMM_PHYS_MEM_FAKE_H_
#include "src/virtualization/bin/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 // SRC_VIRTUALIZATION_BIN_VMM_PHYS_MEM_FAKE_H_