blob: f2890378db87af04ccd42a25e41edd381a19cdee [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_LIB_MACHINA_PHYS_MEM_FAKE_H_
#define GARNET_LIB_MACHINA_PHYS_MEM_FAKE_H_
#include "garnet/lib/machina/device/phys_mem.h"
namespace machina {
class PhysMemFake : public PhysMem {
public:
PhysMemFake() {
vmo_size_ = SIZE_MAX;
addr_ = 0;
}
PhysMemFake(uintptr_t addr, size_t size) {
vmo_size_ = size;
addr_ = addr;
}
};
} // namespace machina
#endif // GARNET_LIB_MACHINA_PHYS_MEM_FAKE_H_