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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "gpu/config/gpu_control_list.h" | 8 #include "gpu/config/gpu_control_list.h" |
9 #include "gpu/config/gpu_info.h" | 9 #include "gpu/config/gpu_info.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 "version": "0.1", | 296 "version": "0.1", |
297 "entries": [ | 297 "entries": [ |
298 { | 298 { |
299 "id": 1, | 299 "id": 1, |
300 "os": { | 300 "os": { |
301 "type": "linux" | 301 "type": "linux" |
302 }, | 302 }, |
303 "vendor_id": "0x8086", | 303 "vendor_id": "0x8086", |
304 "exceptions": [ | 304 "exceptions": [ |
305 { | 305 { |
306 "gl_renderer": { | 306 "gl_renderer": ".*mesa.*" |
307 "op": "contains", | |
308 "value": "mesa" | |
309 } | |
310 } | 307 } |
311 ], | 308 ], |
312 "features": [ | 309 "features": [ |
313 "test_feature_0" | 310 "test_feature_0" |
314 ] | 311 ] |
315 } | 312 } |
316 ] | 313 ] |
317 } | 314 } |
318 ); | 315 ); |
319 GPUInfo gpu_info; | 316 GPUInfo gpu_info; |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 // For non AMD switchable | 534 // For non AMD switchable |
538 gpu_info.amd_switchable = false; | 535 gpu_info.amd_switchable = false; |
539 features = control_list->MakeDecision( | 536 features = control_list->MakeDecision( |
540 GpuControlList::kOsWin, kOsVersion, gpu_info); | 537 GpuControlList::kOsWin, kOsVersion, gpu_info); |
541 EXPECT_EMPTY_SET(features); | 538 EXPECT_EMPTY_SET(features); |
542 } | 539 } |
543 } | 540 } |
544 | 541 |
545 } // namespace gpu | 542 } // namespace gpu |
546 | 543 |
OLD | NEW |