| Index: native_client_sdk/src/libraries/nacl_mounts_test/pepper_interface_mock.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_mounts_test/pepper_interface_mock.h b/native_client_sdk/src/libraries/nacl_mounts_test/pepper_interface_mock.h
|
| deleted file mode 100644
|
| index bd2ab53e18de88b3075e7602cd5860987e0c47b7..0000000000000000000000000000000000000000
|
| --- a/native_client_sdk/src/libraries/nacl_mounts_test/pepper_interface_mock.h
|
| +++ /dev/null
|
| @@ -1,66 +0,0 @@
|
| -/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| - * Use of this source code is governed by a BSD-style license that can be
|
| - * found in the LICENSE file.
|
| - */
|
| -#ifndef LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_
|
| -#define LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_
|
| -
|
| -#include "gmock/gmock.h"
|
| -#include "nacl_mounts/pepper_interface.h"
|
| -
|
| -// Mock interface class definitions.
|
| -#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
|
| - class BaseClass##Mock : public BaseClass { \
|
| - public: \
|
| - BaseClass##Mock(); \
|
| - virtual ~BaseClass##Mock();
|
| -#define END_INTERFACE(BaseClass, PPInterface) \
|
| - };
|
| -#define METHOD1(Class, ReturnType, MethodName, Type0) \
|
| - MOCK_METHOD1(MethodName, ReturnType(Type0));
|
| -#define METHOD2(Class, ReturnType, MethodName, Type0, Type1) \
|
| - MOCK_METHOD2(MethodName, ReturnType(Type0, Type1));
|
| -#define METHOD3(Class, ReturnType, MethodName, Type0, Type1, Type2) \
|
| - MOCK_METHOD3(MethodName, ReturnType(Type0, Type1, Type2));
|
| -#define METHOD4(Class, ReturnType, MethodName, Type0, Type1, Type2, Type3) \
|
| - MOCK_METHOD4(MethodName, ReturnType(Type0, Type1, Type2, Type3));
|
| -#define METHOD5(Class, ReturnType, MethodName, Type0, Type1, Type2, Type3, \
|
| - Type4) \
|
| - MOCK_METHOD5(MethodName, ReturnType(Type0, Type1, Type2, Type3, Type4));
|
| -#include "nacl_mounts/pepper/all_interfaces.h"
|
| -#include "nacl_mounts/pepper/undef_macros.h"
|
| -
|
| -
|
| -class PepperInterfaceMock : public PepperInterface {
|
| - public:
|
| - explicit PepperInterfaceMock(PP_Instance instance);
|
| - ~PepperInterfaceMock();
|
| -
|
| - virtual PP_Instance GetInstance();
|
| - MOCK_METHOD1(AddRefResource, void(PP_Resource));
|
| - MOCK_METHOD1(ReleaseResource, void(PP_Resource));
|
| -
|
| -// Interface getters.
|
| -#include "nacl_mounts/pepper/define_empty_macros.h"
|
| -#undef BEGIN_INTERFACE
|
| -#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
|
| - virtual BaseClass##Mock* Get##BaseClass();
|
| -#include "nacl_mounts/pepper/all_interfaces.h"
|
| -#include "nacl_mounts/pepper/undef_macros.h"
|
| -
|
| - private:
|
| - PP_Instance instance_;
|
| -
|
| -// Interface pointers.
|
| -#include "nacl_mounts/pepper/define_empty_macros.h"
|
| -#undef BEGIN_INTERFACE
|
| -#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
|
| - BaseClass##Mock* BaseClass##interface_;
|
| -#include "nacl_mounts/pepper/all_interfaces.h"
|
| -#include "nacl_mounts/pepper/undef_macros.h"
|
| -
|
| - int dummy_;
|
| -};
|
| -
|
| -
|
| -#endif // LIBRARIES_NACL_MOUNTS_TEST_PEPPER_INTERFACE_MOCK_H_
|
|
|