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

Side by Side Diff: chrome/gpu/gpu_info_collector_unittest.cc

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/gpu/gpu_info_collector.h ('k') | chrome/gpu/gpu_info_unittest_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "app/gfx/gl/gl_implementation.h" 5 #include "app/gfx/gl/gl_implementation.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "chrome/common/gpu_info.h"
8 #include "chrome/gpu/gpu_info_collector.h" 7 #include "chrome/gpu/gpu_info_collector.h"
8 #include "content/common/gpu_info.h"
9 #include "gpu/command_buffer/common/gl_mock.h" 9 #include "gpu/command_buffer/common/gl_mock.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using ::gfx::MockGLInterface; 13 using ::gfx::MockGLInterface;
14 using ::testing::Return; 14 using ::testing::Return;
15 15
16 class GPUInfoCollectorTest : public testing::Test { 16 class GPUInfoCollectorTest : public testing::Test {
17 public: 17 public:
18 GPUInfoCollectorTest() {} 18 GPUInfoCollectorTest() {}
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 std::string gl_vendor = gpu_info.gl_vendor; 168 std::string gl_vendor = gpu_info.gl_vendor;
169 EXPECT_EQ(test_values_.gl_vendor, gl_vendor); 169 EXPECT_EQ(test_values_.gl_vendor, gl_vendor);
170 } 170 }
171 171
172 TEST_F(GPUInfoCollectorTest, GLExtensionsGL) { 172 TEST_F(GPUInfoCollectorTest, GLExtensionsGL) {
173 GPUInfo gpu_info; 173 GPUInfo gpu_info;
174 gpu_info_collector::CollectGraphicsInfoGL(&gpu_info); 174 gpu_info_collector::CollectGraphicsInfoGL(&gpu_info);
175 std::string gl_extensions = gpu_info.gl_extensions; 175 std::string gl_extensions = gpu_info.gl_extensions;
176 EXPECT_EQ(test_values_.gl_extensions, gl_extensions); 176 EXPECT_EQ(test_values_.gl_extensions, gl_extensions);
177 } 177 }
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_info_collector.h ('k') | chrome/gpu/gpu_info_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698