| Index: gpu/command_buffer/common/unittest_main.cc
|
| diff --git a/gpu/command_buffer/common/unittest_main.cc b/gpu/command_buffer/common/unittest_main.cc
|
| index e972b6ae570f829828433ff4ee42b3dd91d3977d..3216503132f48b7319e5bdbd3a4e59c190f2ad00 100644
|
| --- a/gpu/command_buffer/common/unittest_main.cc
|
| +++ b/gpu/command_buffer/common/unittest_main.cc
|
| @@ -9,7 +9,7 @@
|
| #include "base/test/test_suite.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| -#include "ui/gl/gl_implementation.h"
|
| +#include "ui/gl/gl_surface.h"
|
|
|
| namespace {
|
|
|
| @@ -18,6 +18,12 @@ class NoAtExitBaseTestSuite : public base::TestSuite {
|
| NoAtExitBaseTestSuite(int argc, char** argv)
|
| : base::TestSuite(argc, argv, false) {
|
| }
|
| +
|
| + virtual void Initialize() OVERRIDE {
|
| + base::TestSuite::Initialize();
|
| + gfx::GLSurface::InitializeOneOffWithMockBindingsForTests();
|
| + gfx::GLSurface::InitializeDynamicMockBindingsForTests(NULL);
|
| + }
|
| };
|
|
|
| int RunTestSuite(int argc, char** argv) {
|
| @@ -34,8 +40,6 @@ int main(int argc, char** argv) {
|
| base::AtExitManager exit_manager;
|
| #endif
|
| CommandLine::Init(argc, argv);
|
| - gfx::InitializeStaticGLBindings(gfx::kGLImplementationMockGL);
|
| - gfx::InitializeDynamicGLBindings(gfx::kGLImplementationMockGL, NULL);
|
| testing::InitGoogleMock(&argc, argv);
|
| return base::LaunchUnitTests(argc,
|
| argv,
|
|
|