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

Side by Side Diff: content/test/gpu/gpu_test_expectations_parser.cc

Issue 10916334: Enable webgl conformance tests under content/test/gpu in content_browsertests (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: namespace fixup Created 8 years, 2 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
« no previous file with comments | « content/test/data/gpu/webgl_conformance_test_expectations.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/test/gpu/gpu_test_expectations_parser.h" 5 #include "content/test/gpu/gpu_test_expectations_parser.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/string_split.h" 12 #include "base/string_split.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "content/public/common/content_paths.h"
15 16
16 namespace { 17 namespace {
17 18
18 enum LineParserStage { 19 enum LineParserStage {
19 kLineParserBegin = 0, 20 kLineParserBegin = 0,
20 kLineParserBugID, 21 kLineParserBugID,
21 kLineParserConfigs, 22 kLineParserConfigs,
22 kLineParserColon, 23 kLineParserColon,
23 kLineParserTestName, 24 kLineParserTestName,
24 kLineParserEqual, 25 kLineParserEqual,
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 } 493 }
493 494
494 // static 495 // static
495 bool GPUTestExpectationsParser::GetExpectationsPath( 496 bool GPUTestExpectationsParser::GetExpectationsPath(
496 GPUTestProfile profile, FilePath* path) { 497 GPUTestProfile profile, FilePath* path) {
497 DCHECK(path); 498 DCHECK(path);
498 499
499 bool rt = true; 500 bool rt = true;
500 switch (profile) { 501 switch (profile) {
501 case kWebGLConformanceTest: 502 case kWebGLConformanceTest:
502 rt = PathService::Get(base::DIR_SOURCE_ROOT, path); 503 rt = PathService::Get(content::DIR_TEST_DATA, path);
503 if (rt) { 504 if (rt) {
504 *path = path->Append(FILE_PATH_LITERAL("chrome")) 505 *path = path->Append(FILE_PATH_LITERAL("gpu"))
505 .Append(FILE_PATH_LITERAL("test"))
506 .Append(FILE_PATH_LITERAL("gpu"))
507 .Append(FILE_PATH_LITERAL( 506 .Append(FILE_PATH_LITERAL(
508 "webgl_conformance_test_expectations.txt")); 507 "webgl_conformance_test_expectations.txt"));
509 rt = file_util::PathExists(*path); 508 rt = file_util::PathExists(*path);
510 } 509 }
511 break; 510 break;
512 default: 511 default:
513 DCHECK(false); 512 DCHECK(false);
514 } 513 }
515 return rt; 514 return rt;
516 } 515 }
517 516
518 GPUTestExpectationsParser:: GPUTestExpectationEntry::GPUTestExpectationEntry() 517 GPUTestExpectationsParser:: GPUTestExpectationEntry::GPUTestExpectationEntry()
519 : test_expectation(0), 518 : test_expectation(0),
520 line_number(0) { 519 line_number(0) {
521 } 520 }
522 521
OLDNEW
« no previous file with comments | « content/test/data/gpu/webgl_conformance_test_expectations.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698