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

Side by Side Diff: chrome/browser/gpu_blacklist_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 | « chrome/browser/gpu_blacklist.cc ('k') | chrome/browser/gpu_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <vector> 5 #include <vector>
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 const content::GPUInfo& gpu_info() const { 26 const content::GPUInfo& gpu_info() const {
27 return gpu_info_; 27 return gpu_info_;
28 } 28 }
29 29
30 GpuBlacklist* Create() { 30 GpuBlacklist* Create() {
31 return new GpuBlacklist(); 31 return new GpuBlacklist();
32 } 32 }
33 33
34 protected: 34 protected:
35 void SetUp() { 35 void SetUp() {
36 gpu_info_.vendor_id = 0x10de; 36 gpu_info_.gpu.vendor_id = 0x10de;
37 gpu_info_.device_id = 0x0640; 37 gpu_info_.gpu.device_id = 0x0640;
38 gpu_info_.driver_vendor = "NVIDIA"; 38 gpu_info_.driver_vendor = "NVIDIA";
39 gpu_info_.driver_version = "1.6.18"; 39 gpu_info_.driver_version = "1.6.18";
40 gpu_info_.driver_date = "7-14-2009"; 40 gpu_info_.driver_date = "7-14-2009";
41 gpu_info_.gl_vendor = "NVIDIA Corporation"; 41 gpu_info_.gl_vendor = "NVIDIA Corporation";
42 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine"; 42 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine";
43 gpu_info_.performance_stats.graphics = 5.0; 43 gpu_info_.performance_stats.graphics = 5.0;
44 gpu_info_.performance_stats.gaming = 5.0; 44 gpu_info_.performance_stats.gaming = 5.0;
45 gpu_info_.performance_stats.overall = 5.0; 45 gpu_info_.performance_stats.overall = 5.0;
46 } 46 }
47 47
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 std::vector<uint32> flag_entries; 748 std::vector<uint32> flag_entries;
749 bool disabled = false; 749 bool disabled = false;
750 blacklist->GetGpuFeatureTypeEntries( 750 blacklist->GetGpuFeatureTypeEntries(
751 content::GPU_FEATURE_TYPE_ALL, flag_entries, disabled); 751 content::GPU_FEATURE_TYPE_ALL, flag_entries, disabled);
752 EXPECT_EQ(flag_entries.size(), 0u); 752 EXPECT_EQ(flag_entries.size(), 0u);
753 disabled = true; 753 disabled = true;
754 blacklist->GetGpuFeatureTypeEntries( 754 blacklist->GetGpuFeatureTypeEntries(
755 content::GPU_FEATURE_TYPE_ALL, flag_entries, disabled); 755 content::GPU_FEATURE_TYPE_ALL, flag_entries, disabled);
756 EXPECT_EQ(flag_entries.size(), 1u); 756 EXPECT_EQ(flag_entries.size(), 1u);
757 } 757 }
OLDNEW
« no previous file with comments | « chrome/browser/gpu_blacklist.cc ('k') | chrome/browser/gpu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698