Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: gpu/command_buffer/service/program_manager_unittest.cc

Issue 2134006: Added EGL based GLContext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_win.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/program_manager_unittest.cc
===================================================================
--- gpu/command_buffer/service/program_manager_unittest.cc (revision 49195)
+++ gpu/command_buffer/service/program_manager_unittest.cc (working copy)
@@ -3,12 +3,12 @@
// found in the LICENSE file.
#include "gpu/command_buffer/service/program_manager.h"
+#include "app/gfx/gl/gl_mock.h"
#include "base/scoped_ptr.h"
#include "base/string_util.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "gpu/command_buffer/service/gl_mock.h"
-using ::gles2::MockGLInterface;
+using ::gfx::MockGLInterface;
using ::testing::_;
using ::testing::DoAll;
using ::testing::InSequence;
@@ -120,8 +120,8 @@
};
virtual void SetUp() {
- gl_.reset(new StrictMock<MockGLInterface>());
- ::gles2::GLInterface::SetGLInterface(gl_.get());
+ gl_.reset(new StrictMock<gfx::MockGLInterface>());
+ ::gfx::GLInterface::SetGLInterface(gl_.get());
SetupDefaultShaderExpectations();
@@ -217,12 +217,13 @@
}
virtual void TearDown() {
+ ::gfx::GLInterface::SetGLInterface(NULL);
}
static AttribInfo kAttribs[];
static UniformInfo kUniforms[];
- scoped_ptr<StrictMock<MockGLInterface> > gl_;
+ scoped_ptr<StrictMock<gfx::MockGLInterface> > gl_;
ProgramManager manager_;
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_win.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698