OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_ | 5 #ifndef LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_ |
6 #define LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_ | 6 #define LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_ |
7 | 7 |
8 #include "gmock/gmock.h" | 8 #include "gmock/gmock.h" |
9 #include "nacl_mounts/pepper_interface.h" | 9 #include "nacl_mounts/pepper_interface.h" |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 class DirectoryReaderInterfaceMock : public DirectoryReaderInterface { | 70 class DirectoryReaderInterfaceMock : public DirectoryReaderInterface { |
71 public: | 71 public: |
72 MOCK_METHOD1(Create, PP_Resource(PP_Resource)); | 72 MOCK_METHOD1(Create, PP_Resource(PP_Resource)); |
73 MOCK_METHOD3(GetNextEntry, int32_t(PP_Resource, PP_DirectoryEntry_Dev*, | 73 MOCK_METHOD3(GetNextEntry, int32_t(PP_Resource, PP_DirectoryEntry_Dev*, |
74 PP_CompletionCallback)); | 74 PP_CompletionCallback)); |
75 }; | 75 }; |
76 | 76 |
77 class VarInterfaceMock : public VarInterface { | 77 class VarInterfaceMock : public VarInterface { |
78 public: | 78 public: |
| 79 MOCK_METHOD2(VarFromUtf8, PP_Var(const char*, uint32_t)); |
79 MOCK_METHOD2(VarToUtf8, const char*(PP_Var, uint32_t*)); | 80 MOCK_METHOD2(VarToUtf8, const char*(PP_Var, uint32_t*)); |
80 }; | 81 }; |
81 | 82 |
82 #endif // LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_ | 83 #endif // LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_ |
OLD | NEW |