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": ".*mesa.*" | 306 "gl_renderer": { |
| 307 "op": "contains", |
| 308 "value": "mesa" |
| 309 } |
307 } | 310 } |
308 ], | 311 ], |
309 "features": [ | 312 "features": [ |
310 "test_feature_0" | 313 "test_feature_0" |
311 ] | 314 ] |
312 } | 315 } |
313 ] | 316 ] |
314 } | 317 } |
315 ); | 318 ); |
316 GPUInfo gpu_info; | 319 GPUInfo gpu_info; |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // For non AMD switchable | 537 // For non AMD switchable |
535 gpu_info.amd_switchable = false; | 538 gpu_info.amd_switchable = false; |
536 features = control_list->MakeDecision( | 539 features = control_list->MakeDecision( |
537 GpuControlList::kOsWin, kOsVersion, gpu_info); | 540 GpuControlList::kOsWin, kOsVersion, gpu_info); |
538 EXPECT_EMPTY_SET(features); | 541 EXPECT_EMPTY_SET(features); |
539 } | 542 } |
540 } | 543 } |
541 | 544 |
542 } // namespace gpu | 545 } // namespace gpu |
543 | 546 |
OLD | NEW |