OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "gpu/config/gpu_control_list_jsons.h" | 8 #include "gpu/config/gpu_control_list_jsons.h" |
9 #include "gpu/config/gpu_driver_bug_list.h" | 9 #include "gpu/config/gpu_driver_bug_list.h" |
10 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 10 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 void SetUp() override { | 29 void SetUp() override { |
30 gpu_info_.gpu.vendor_id = 0x10de; | 30 gpu_info_.gpu.vendor_id = 0x10de; |
31 gpu_info_.gpu.device_id = 0x0640; | 31 gpu_info_.gpu.device_id = 0x0640; |
32 gpu_info_.driver_vendor = "NVIDIA"; | 32 gpu_info_.driver_vendor = "NVIDIA"; |
33 gpu_info_.driver_version = "1.6.18"; | 33 gpu_info_.driver_version = "1.6.18"; |
34 gpu_info_.driver_date = "7-14-2009"; | 34 gpu_info_.driver_date = "7-14-2009"; |
35 gpu_info_.machine_model_name = "MacBookPro"; | 35 gpu_info_.machine_model_name = "MacBookPro"; |
36 gpu_info_.machine_model_version = "7.1"; | 36 gpu_info_.machine_model_version = "7.1"; |
37 gpu_info_.gl_vendor = "NVIDIA Corporation"; | 37 gpu_info_.gl_vendor = "NVIDIA Corporation"; |
38 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine"; | 38 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine"; |
39 gpu_info_.performance_stats.graphics = 5.0; | |
40 gpu_info_.performance_stats.gaming = 5.0; | |
41 gpu_info_.performance_stats.overall = 5.0; | |
42 } | 39 } |
43 | 40 |
44 void TearDown() override {} | 41 void TearDown() override {} |
45 | 42 |
46 private: | 43 private: |
47 GPUInfo gpu_info_; | 44 GPUInfo gpu_info_; |
48 }; | 45 }; |
49 | 46 |
50 TEST_F(GpuDriverBugListTest, CurrentDriverBugListValidation) { | 47 TEST_F(GpuDriverBugListTest, CurrentDriverBugListValidation) { |
51 scoped_ptr<GpuDriverBugList> list(GpuDriverBugList::Create()); | 48 scoped_ptr<GpuDriverBugList> list(GpuDriverBugList::Create()); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 EXPECT_EQ(1u, bugs.count(DISABLE_D3D11)); | 199 EXPECT_EQ(1u, bugs.count(DISABLE_D3D11)); |
203 | 200 |
204 // test a higher driver version number | 201 // test a higher driver version number |
205 gpu_info.driver_version = "9.18.13.2723"; | 202 gpu_info.driver_version = "9.18.13.2723"; |
206 bugs = list->MakeDecision(GpuControlList::kOsWin, "7.0", gpu_info); | 203 bugs = list->MakeDecision(GpuControlList::kOsWin, "7.0", gpu_info); |
207 EXPECT_EQ(0u, bugs.count(DISABLE_D3D11)); | 204 EXPECT_EQ(0u, bugs.count(DISABLE_D3D11)); |
208 } | 205 } |
209 | 206 |
210 } // namespace gpu | 207 } // namespace gpu |
211 | 208 |
OLD | NEW |