| Index: gpu/command_buffer/service/context_group_unittest.cc
|
| diff --git a/gpu/command_buffer/service/context_group_unittest.cc b/gpu/command_buffer/service/context_group_unittest.cc
|
| index 608109dffd0c16223e4aed5c45669c4903507402..902d79ebe23de3b0e9bc610d9be65698113a0a30 100644
|
| --- a/gpu/command_buffer/service/context_group_unittest.cc
|
| +++ b/gpu/command_buffer/service/context_group_unittest.cc
|
| @@ -6,12 +6,12 @@
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
|
| -#include "gpu/command_buffer/service/gpu_service_test.h"
|
| #include "gpu/command_buffer/service/test_helper.h"
|
| #include "gpu/command_buffer/service/texture_manager.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "ui/gl/gl_mock.h"
|
|
|
| +using ::gfx::MockGLInterface;
|
| using ::testing::_;
|
| using ::testing::DoAll;
|
| using ::testing::HasSubstr;
|
| @@ -23,11 +23,12 @@
|
| using ::testing::SetArrayArgument;
|
| using ::testing::SetArgumentPointee;
|
| using ::testing::StrEq;
|
| +using ::testing::StrictMock;
|
|
|
| namespace gpu {
|
| namespace gles2 {
|
|
|
| -class ContextGroupTest : public GpuServiceTest {
|
| +class ContextGroupTest : public testing::Test {
|
| public:
|
| static const bool kBindGeneratesResource = false;
|
|
|
| @@ -35,12 +36,19 @@
|
|
|
| protected:
|
| virtual void SetUp() {
|
| - GpuServiceTest::SetUp();
|
| + gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>());
|
| + ::gfx::MockGLInterface::SetGLInterface(gl_.get());
|
| decoder_.reset(new MockGLES2Decoder());
|
| group_ = scoped_refptr<ContextGroup>(
|
| new ContextGroup(NULL, NULL, NULL, NULL, NULL, kBindGeneratesResource));
|
| }
|
|
|
| + virtual void TearDown() {
|
| + ::gfx::MockGLInterface::SetGLInterface(NULL);
|
| + gl_.reset();
|
| + }
|
| +
|
| + scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_;
|
| scoped_ptr<MockGLES2Decoder> decoder_;
|
| scoped_refptr<ContextGroup> group_;
|
| };
|
|
|