This source file includes following definitions.
- GetInstance
#include "pepper_interface_mock.h"
PepperInterfaceMock::PepperInterfaceMock(PP_Instance instance)
: instance_(instance) {
#include "nacl_io/pepper/undef_macros.h"
#include "nacl_io/pepper/define_empty_macros.h"
#undef BEGIN_INTERFACE
#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
BaseClass##interface_ = new BaseClass##Mock;
#include "nacl_io/pepper/all_interfaces.h"
}
PepperInterfaceMock::~PepperInterfaceMock() {
#include "nacl_io/pepper/undef_macros.h"
#include "nacl_io/pepper/define_empty_macros.h"
#undef BEGIN_INTERFACE
#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
delete BaseClass##interface_;
#include "nacl_io/pepper/all_interfaces.h"
}
PP_Instance PepperInterfaceMock::GetInstance() {
return instance_;
}
#include "nacl_io/pepper/undef_macros.h"
#include "nacl_io/pepper/define_empty_macros.h"
#undef BEGIN_INTERFACE
#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
BaseClass##Mock* PepperInterfaceMock::Get##BaseClass() { \
return BaseClass##interface_; \
} \
BaseClass##Mock::BaseClass##Mock() { \
} \
BaseClass##Mock::~BaseClass##Mock() { \
}
#include "nacl_io/pepper/all_interfaces.h"