| 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 LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ |
| 6 #define LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ | 6 #define LIBRARIES_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 { \ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #undef BEGIN_INTERFACE | 58 #undef BEGIN_INTERFACE |
| 59 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ | 59 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ |
| 60 BaseClass##Mock* BaseClass##interface_; | 60 BaseClass##Mock* BaseClass##interface_; |
| 61 #include "nacl_io/pepper/all_interfaces.h" | 61 #include "nacl_io/pepper/all_interfaces.h" |
| 62 | 62 |
| 63 int dummy_; | 63 int dummy_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 | 66 |
| 67 #endif // LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ | 67 #endif // LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ |
| OLD | NEW |