1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
6 #define LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
8 #include "gmock/gmock.h"
10 #include "nacl_io/mount.h"
11 #include "nacl_io/mount_dev.h"
13 #define NULL_NODE ((MountNode*) NULL)
15 class MountDevMock : public nacl_io::MountDev {
18 nacl_io::StringMap_t map;
21 int num_nodes() { return (int) inode_pool_.size(); }
24 #endif // LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_