15 #ifndef ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_TEST_ANDROIDUTILITIES_MOCKANDROIDSLESINTERFACE_H_ 16 #define ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_TEST_ANDROIDUTILITIES_MOCKANDROIDSLESINTERFACE_H_ 19 namespace applicationUtilities {
20 namespace androidUtilities {
33 virtual void set(
void* destination) = 0;
44 template <
typename InterfaceT>
49 void set(
void* destination);
66 InterfaceT** m_mockAndroidSLESObject;
69 template <
typename InterfaceT>
71 auto object =
new InterfaceT();
72 auto objectPtr =
new InterfaceT*();
74 m_mockAndroidSLESObject = objectPtr;
77 template <
typename InterfaceT>
79 delete *m_mockAndroidSLESObject;
80 delete m_mockAndroidSLESObject;
83 template <
typename InterfaceT>
85 auto destinationPtr =
static_cast<InterfaceT***
>(destination);
86 *destinationPtr = m_mockAndroidSLESObject;
89 template <
typename InterfaceT>
91 return **m_mockAndroidSLESObject;
99 #endif // ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_TEST_ANDROIDUTILITIES_MOCKANDROIDSLESINTERFACE_H_ virtual ~MockInterface()=default
Definition: AmdMetricWrapperTest.cpp:24
~MockInterfaceImpl()
Destructor.
Definition: MockAndroidSLESInterface.h:78
MockInterfaceImpl()
Constructor.
Definition: MockAndroidSLESInterface.h:70
void set(void *destination)
Definition: MockAndroidSLESInterface.h:84
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: MockAndroidSLESInterface.h:26
Definition: MockAndroidSLESInterface.h:45
InterfaceT & get()
Definition: MockAndroidSLESInterface.h:90