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

Side by Side Diff: trunk/src/gpu/config/gpu_control_list_unittest.cc

Issue 475453002: Revert 289308 "Revert 289154 "Revert 289067 "Use RE string patte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « trunk/src/gpu/config/gpu_control_list_string_info_unittest.cc ('k') | trunk/src/gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698