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

Unified Diff: gpu/config/gpu_info_collector_unittest.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/config/gpu_info_collector_mac.mm ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector_unittest.cc
diff --git a/gpu/config/gpu_info_collector_unittest.cc b/gpu/config/gpu_info_collector_unittest.cc
index 3e698d4ce5b4a3a1a4f9d23331017004bb65f70b..1ecdae3b3f7c6426520f55dcc71aeb34dbe195cf 100644
--- a/gpu/config/gpu_info_collector_unittest.cc
+++ b/gpu/config/gpu_info_collector_unittest.cc
@@ -16,7 +16,7 @@
#include "ui/gl/gl_mock.h"
#include "ui/gl/test/gl_surface_test_support.h"
-using ::gfx::MockGLInterface;
+using ::gl::MockGLInterface;
using ::testing::Return;
using ::testing::SetArgPointee;
using ::testing::_;
@@ -51,10 +51,10 @@ class GPUInfoCollectorTest
void SetUp() override {
testing::Test::SetUp();
- gfx::SetGLGetProcAddressProc(gfx::MockGLInterface::GetGLProcAddress);
- gfx::GLSurfaceTestSupport::InitializeOneOffWithMockBindings();
- gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>());
- ::gfx::MockGLInterface::SetGLInterface(gl_.get());
+ gl::SetGLGetProcAddressProc(gl::MockGLInterface::GetGLProcAddress);
+ gl::GLSurfaceTestSupport::InitializeOneOffWithMockBindings();
+ gl_.reset(new ::testing::StrictMock<::gl::MockGLInterface>());
+ ::gl::MockGLInterface::SetGLInterface(gl_.get());
switch (GetParam()) {
case kMockedAndroid: {
test_values_.gpu.vendor_id = 0; // not implemented
@@ -133,7 +133,7 @@ class GPUInfoCollectorTest
test_values_.gl_version.c_str())));
// Now that that expectation is set up, we can call this helper function.
- if (gfx::WillUseGLGetStringForExtensions()) {
+ if (gl::WillUseGLGetStringForExtensions()) {
EXPECT_CALL(*gl_, GetString(GL_EXTENSIONS))
.WillRepeatedly(Return(reinterpret_cast<const GLubyte*>(
test_values_.gl_extensions.c_str())));
@@ -165,16 +165,16 @@ class GPUInfoCollectorTest
}
void TearDown() override {
- ::gfx::MockGLInterface::SetGLInterface(NULL);
+ ::gl::MockGLInterface::SetGLInterface(NULL);
gl_.reset();
- gfx::ClearGLBindings();
+ gl::ClearGLBindings();
testing::Test::TearDown();
}
public:
// Use StrictMock to make 100% sure we know how GL will be called.
- std::unique_ptr<::testing::StrictMock<::gfx::MockGLInterface>> gl_;
+ std::unique_ptr<::testing::StrictMock<::gl::MockGLInterface>> gl_;
GPUInfo test_values_;
const char* gl_shading_language_version_ = nullptr;
« no previous file with comments | « gpu/config/gpu_info_collector_mac.mm ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698