mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 13:48:30 +09:00
[Fix] (MG_Test/Program): use Setup() instead of ctor
This commit is contained in:
@@ -8,12 +8,9 @@ using namespace MobileGL::MG_Impl::GLImpl;
|
|||||||
|
|
||||||
class ProgramTest : public ::testing::Test {
|
class ProgramTest : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
ProgramTest() {
|
void SetUp() override {
|
||||||
mGLContext = MakeUnique<MG_State::GLState::GLContext>();
|
MG_State::pGLContext = new MG_State::GLState::GLContext();
|
||||||
MG_State::pGLContext = mGLContext.get();
|
|
||||||
}
|
}
|
||||||
private:
|
|
||||||
UniquePtr<MG_State::GLState::GLContext> mGLContext;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST_F(ProgramTest, Sanity) {
|
TEST_F(ProgramTest, Sanity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user