Files
comaps/libs/drape/drape_tests/gl_mock_functions.cpp
Konstantin Pastbin bfffa1fff4 Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-08-17 14:32:37 +07:00

29 lines
496 B
C++

#include "drape/drape_tests/gl_mock_functions.hpp"
namespace emul
{
void GLMockFunctions::Init(int * argc, char ** argv)
{
::testing::InitGoogleMock(argc, argv);
m_mock = new GLMockFunctions();
}
void GLMockFunctions::Teardown()
{
delete m_mock;
m_mock = NULL;
}
GLMockFunctions & GLMockFunctions::Instance()
{
return *m_mock;
}
void GLMockFunctions::ValidateAndClear()
{
::testing::Mock::VerifyAndClear(m_mock);
}
GLMockFunctions * GLMockFunctions::m_mock;
} // namespace emul