OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef LIBRARIES_NACL_IO_TEST_MOCK_NODE_H_ | 5 #ifndef TESTS_NACL_IO_TEST_MOCK_NODE_H_ |
6 #define LIBRARIES_NACL_IO_TEST_MOCK_NODE_H_ | 6 #define TESTS_NACL_IO_TEST_MOCK_NODE_H_ |
7 | 7 |
8 #include "gmock/gmock.h" | 8 #include "gmock/gmock.h" |
9 | 9 |
10 #include "nacl_io/filesystem.h" | 10 #include "nacl_io/filesystem.h" |
11 #include "nacl_io/kernel_handle.h" | 11 #include "nacl_io/kernel_handle.h" |
12 | 12 |
13 class MockNode : public nacl_io::Node { | 13 class MockNode : public nacl_io::Node { |
14 public: | 14 public: |
15 typedef nacl_io::Error Error; | 15 typedef nacl_io::Error Error; |
16 typedef nacl_io::HandleAttr HandleAttr; | 16 typedef nacl_io::HandleAttr HandleAttr; |
(...skipping 20 matching lines...) Expand all Loading... |
37 MOCK_METHOD0(IsaFile, bool()); | 37 MOCK_METHOD0(IsaFile, bool()); |
38 MOCK_METHOD0(IsaTTY, bool()); | 38 MOCK_METHOD0(IsaTTY, bool()); |
39 MOCK_METHOD0(ChildCount, int()); | 39 MOCK_METHOD0(ChildCount, int()); |
40 MOCK_METHOD2(AddChild, Error(const std::string&, const ScopedNode&)); | 40 MOCK_METHOD2(AddChild, Error(const std::string&, const ScopedNode&)); |
41 MOCK_METHOD1(RemoveChild, Error(const std::string&)); | 41 MOCK_METHOD1(RemoveChild, Error(const std::string&)); |
42 MOCK_METHOD2(FindChild, Error(const std::string&, ScopedNode*)); | 42 MOCK_METHOD2(FindChild, Error(const std::string&, ScopedNode*)); |
43 MOCK_METHOD0(Link, void()); | 43 MOCK_METHOD0(Link, void()); |
44 MOCK_METHOD0(Unlink, void()); | 44 MOCK_METHOD0(Unlink, void()); |
45 }; | 45 }; |
46 | 46 |
47 #endif // LIBRARIES_NACL_IO_TEST_MOCK_NODE_H_ | 47 #endif // TESTS_NACL_IO_TEST_MOCK_NODE_H_ |
OLD | NEW |