blob: 8acc2fe7762a5485d9acfd0d2ff9d3397b6fcf9e [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_CONNECTIVITY_NETWORK_TESTING_NETEMUL_RUNNER_VIRTUAL_DATA_H_
#define SRC_CONNECTIVITY_NETWORK_TESTING_NETEMUL_RUNNER_VIRTUAL_DATA_H_
#include <fbl/ref_ptr.h>
#include <fs/synchronous_vfs.h>
#include <fs/vnode.h>
#include <lib/memfs/cpp/vnode.h>
namespace netemul {
class VirtualData {
public:
VirtualData();
~VirtualData();
zx::channel GetDirectory();
private:
std::unique_ptr<memfs::Vfs> vfs_;
fbl::RefPtr<memfs::VnodeDir> dir_;
};
} // namespace netemul
#endif // SRC_CONNECTIVITY_NETWORK_TESTING_NETEMUL_RUNNER_VIRTUAL_DATA_H_