Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
|
binji
2013/08/20 18:26:49
nit: include guard comment
Sam Clegg
2013/08/20 19:09:36
Done.
| |
| OLD | NEW |