- add sources.
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / tests / nacl_io_test / mount_dev_mock.h
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.
4
5 #ifndef LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
6 #define LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
7
8 #include "gmock/gmock.h"
9
10 #include "nacl_io/mount.h"
11 #include "nacl_io/mount_dev.h"
12
13 #define NULL_NODE ((MountNode*) NULL)
14
15 class MountDevMock : public nacl_io::MountDev {
16  public:
17   MountDevMock() {
18     nacl_io::StringMap_t map;
19     Init(1, map, NULL);
20   }
21   int num_nodes() { return (int) inode_pool_.size(); }
22 };
23
24 #endif  // LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_