| 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 */ | |
| 5 | 4 |
| 6 #include "pepper_interface_mock.h" | 5 #include "pepper_interface_mock.h" |
| 7 | 6 |
| 8 PepperInterfaceMock::PepperInterfaceMock(PP_Instance instance) | 7 PepperInterfaceMock::PepperInterfaceMock(PP_Instance instance) |
| 9 : instance_(instance), | 8 : instance_(instance), |
| 10 | 9 |
| 11 // Initialize interfaces. | 10 // Initialize interfaces. |
| 12 #include "nacl_io/pepper/undef_macros.h" | 11 #include "nacl_io/pepper/undef_macros.h" |
| 13 #include "nacl_io/pepper/define_empty_macros.h" | 12 #include "nacl_io/pepper/define_empty_macros.h" |
| 14 #undef BEGIN_INTERFACE | 13 #undef BEGIN_INTERFACE |
| (...skipping 28 matching lines...) Expand all Loading... |
| 43 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ | 42 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ |
| 44 BaseClass##Mock* PepperInterfaceMock::Get##BaseClass() { \ | 43 BaseClass##Mock* PepperInterfaceMock::Get##BaseClass() { \ |
| 45 return BaseClass##interface_; \ | 44 return BaseClass##interface_; \ |
| 46 } \ | 45 } \ |
| 47 BaseClass##Mock::BaseClass##Mock() { \ | 46 BaseClass##Mock::BaseClass##Mock() { \ |
| 48 } \ | 47 } \ |
| 49 BaseClass##Mock::~BaseClass##Mock() { \ | 48 BaseClass##Mock::~BaseClass##Mock() { \ |
| 50 } | 49 } |
| 51 #include "nacl_io/pepper/all_interfaces.h" | 50 #include "nacl_io/pepper/all_interfaces.h" |
| 52 | 51 |
| OLD | NEW |