| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |