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

Unified Diff: gpu/config/gpu_info_collector_unittest.cc

Issue 15745014: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 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
===================================================================
--- gpu/config/gpu_info_collector_unittest.cc (revision 0)
+++ gpu/config/gpu_info_collector_unittest.cc (working copy)
@@ -3,8 +3,8 @@
// found in the LICENSE file.
#include "base/memory/scoped_ptr.h"
-#include "content/gpu/gpu_info_collector.h"
-#include "content/public/common/gpu_info.h"
+#include "gpu/config/gpu_info.h"
+#include "gpu/config/gpu_info_collector.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_implementation.h"
@@ -13,6 +13,8 @@
using ::gfx::MockGLInterface;
using ::testing::Return;
+namespace gpu {
+
class GPUInfoCollectorTest : public testing::Test {
public:
GPUInfoCollectorTest() {}
@@ -106,7 +108,7 @@
public:
// Use StrictMock to make 100% sure we know how GL will be called.
scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_;
- content::GPUInfo test_values_;
+ GPUInfo test_values_;
};
// TODO(rlp): Test the vendor and device id collection if deemed necessary as
@@ -115,8 +117,8 @@
// TODO(kbr): re-enable these tests; see http://crbug.com/100285 .
TEST_F(GPUInfoCollectorTest, DISABLED_DriverVendorGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.driver_vendor,
gpu_info.driver_vendor);
}
@@ -124,58 +126,61 @@
// Skip Windows because the driver version is obtained from bot registry.
#if !defined(OS_WIN)
TEST_F(GPUInfoCollectorTest, DISABLED_DriverVersionGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.driver_version,
gpu_info.driver_version);
}
#endif
TEST_F(GPUInfoCollectorTest, DISABLED_PixelShaderVersionGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.pixel_shader_version,
gpu_info.pixel_shader_version);
}
TEST_F(GPUInfoCollectorTest, DISABLED_VertexShaderVersionGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.vertex_shader_version,
gpu_info.vertex_shader_version);
}
TEST_F(GPUInfoCollectorTest, DISABLED_GLVersionGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.gl_version,
gpu_info.gl_version);
}
TEST_F(GPUInfoCollectorTest, DISABLED_GLVersionStringGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.gl_version_string,
gpu_info.gl_version_string);
}
TEST_F(GPUInfoCollectorTest, DISABLED_GLRendererGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.gl_renderer,
gpu_info.gl_renderer);
}
TEST_F(GPUInfoCollectorTest, DISABLED_GLVendorGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.gl_vendor,
gpu_info.gl_vendor);
}
TEST_F(GPUInfoCollectorTest, DISABLED_GLExtensionsGL) {
- content::GPUInfo gpu_info;
- gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
+ GPUInfo gpu_info;
+ CollectGraphicsInfoGL(&gpu_info);
EXPECT_EQ(test_values_.gl_extensions,
gpu_info.gl_extensions);
}
+
+} // namespace gpu
+
« 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