Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
28
libs/drape/drape_tests/gl_mock_functions.cpp
Normal file
28
libs/drape/drape_tests/gl_mock_functions.cpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue