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_IO_TEST_PEPPER_INTERFACE_MOCK_H_ | 5 #ifndef TESTS_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ |
6 #define LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ | 6 #define TESTS_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ |
7 | 7 |
8 #include "gmock/gmock.h" | 8 #include "gmock/gmock.h" |
9 #include "nacl_io/pepper_interface.h" | 9 #include "nacl_io/pepper_interface.h" |
10 | 10 |
11 // Mock interface class definitions. | 11 // Mock interface class definitions. |
12 #include "nacl_io/pepper/undef_macros.h" | 12 #include "nacl_io/pepper/undef_macros.h" |
13 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ | 13 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ |
14 class BaseClass##Mock : public nacl_io::BaseClass { \ | 14 class BaseClass##Mock : public nacl_io::BaseClass { \ |
15 public: \ | 15 public: \ |
16 BaseClass##Mock(); \ | 16 BaseClass##Mock(); \ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Interface pointers. | 54 // Interface pointers. |
55 #include "nacl_io/pepper/undef_macros.h" | 55 #include "nacl_io/pepper/undef_macros.h" |
56 #include "nacl_io/pepper/define_empty_macros.h" | 56 #include "nacl_io/pepper/define_empty_macros.h" |
57 #undef BEGIN_INTERFACE | 57 #undef BEGIN_INTERFACE |
58 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ | 58 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ |
59 BaseClass##Mock* BaseClass##interface_; | 59 BaseClass##Mock* BaseClass##interface_; |
60 #include "nacl_io/pepper/all_interfaces.h" | 60 #include "nacl_io/pepper/all_interfaces.h" |
61 }; | 61 }; |
62 | 62 |
63 | 63 |
64 #endif // LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ | 64 #endif // TESTS_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ |
OLD | NEW |