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

Side by Side Diff: content/common/gpu/gpu_info_unittest.cc

Issue 10389051: Change GPUInfo to handle multiple GPUs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/common/gpu/gpu_messages.h » ('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 "content/public/common/gpu_info.h" 5 #include "content/public/common/gpu_info.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 // Test that an empty GPUInfo has valid members 8 // Test that an empty GPUInfo has valid members
9 TEST(GPUInfoBasicTest, EmptyGPUInfo) { 9 TEST(GPUInfoBasicTest, EmptyGPUInfo) {
10 content::GPUInfo gpu_info; 10 content::GPUInfo gpu_info;
11 EXPECT_EQ(gpu_info.finalized, false); 11 EXPECT_EQ(gpu_info.finalized, false);
12 EXPECT_EQ(gpu_info.initialization_time.ToInternalValue(), 0); 12 EXPECT_EQ(gpu_info.initialization_time.ToInternalValue(), 0);
13 EXPECT_EQ(gpu_info.vendor_id, 0u); 13 EXPECT_EQ(gpu_info.gpu.vendor_id, 0u);
14 EXPECT_EQ(gpu_info.device_id, 0u); 14 EXPECT_EQ(gpu_info.gpu.device_id, 0u);
15 EXPECT_EQ(gpu_info.secondary_gpus.size(), 0u);
15 EXPECT_EQ(gpu_info.driver_vendor, ""); 16 EXPECT_EQ(gpu_info.driver_vendor, "");
16 EXPECT_EQ(gpu_info.driver_version, ""); 17 EXPECT_EQ(gpu_info.driver_version, "");
17 EXPECT_EQ(gpu_info.driver_date, ""); 18 EXPECT_EQ(gpu_info.driver_date, "");
18 EXPECT_EQ(gpu_info.pixel_shader_version, ""); 19 EXPECT_EQ(gpu_info.pixel_shader_version, "");
19 EXPECT_EQ(gpu_info.vertex_shader_version, ""); 20 EXPECT_EQ(gpu_info.vertex_shader_version, "");
20 EXPECT_EQ(gpu_info.gl_version, ""); 21 EXPECT_EQ(gpu_info.gl_version, "");
21 EXPECT_EQ(gpu_info.gl_version_string, ""); 22 EXPECT_EQ(gpu_info.gl_version_string, "");
22 EXPECT_EQ(gpu_info.gl_vendor, ""); 23 EXPECT_EQ(gpu_info.gl_vendor, "");
23 EXPECT_EQ(gpu_info.gl_renderer, ""); 24 EXPECT_EQ(gpu_info.gl_renderer, "");
24 EXPECT_EQ(gpu_info.gl_extensions, ""); 25 EXPECT_EQ(gpu_info.gl_extensions, "");
25 EXPECT_EQ(gpu_info.can_lose_context, false); 26 EXPECT_EQ(gpu_info.can_lose_context, false);
26 } 27 }
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698