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

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: small fixes Created 8 years, 3 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) 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"
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 // static 494 // static
495 bool GPUTestExpectationsParser::GetExpectationsPath( 495 bool GPUTestExpectationsParser::GetExpectationsPath(
496 GPUTestProfile profile, FilePath* path) { 496 GPUTestProfile profile, FilePath* path) {
497 DCHECK(path); 497 DCHECK(path);
498 498
499 bool rt = true; 499 bool rt = true;
500 switch (profile) { 500 switch (profile) {
501 case kWebGLConformanceTest: 501 case kWebGLConformanceTest:
502 rt = PathService::Get(base::DIR_SOURCE_ROOT, path); 502 rt = PathService::Get(base::DIR_SOURCE_ROOT, path);
503 if (rt) { 503 if (rt) {
504 *path = path->Append(FILE_PATH_LITERAL("chrome")) 504 *path = path->Append(FILE_PATH_LITERAL("content"))
Zhenyao Mo 2012/09/19 18:19:37 Since we switch to use the content side version of
yongsheng 2012/09/20 01:55:06 ok, i'll do it.
505 .Append(FILE_PATH_LITERAL("test")) 505 .Append(FILE_PATH_LITERAL("test"))
506 .Append(FILE_PATH_LITERAL("gpu")) 506 .Append(FILE_PATH_LITERAL("gpu"))
jam 2012/09/19 19:52:40 test data is normally put under content/test/data.
yongsheng 2012/09/20 01:55:06 yes, i agree with you. Zheyao, if you agree with t
507 .Append(FILE_PATH_LITERAL( 507 .Append(FILE_PATH_LITERAL(
508 "webgl_conformance_test_expectations.txt")); 508 "webgl_conformance_test_expectations.txt"));
509 rt = file_util::PathExists(*path); 509 rt = file_util::PathExists(*path);
510 } 510 }
511 break; 511 break;
512 default: 512 default:
513 DCHECK(false); 513 DCHECK(false);
514 } 514 }
515 return rt; 515 return rt;
516 } 516 }
517 517
518 GPUTestExpectationsParser:: GPUTestExpectationEntry::GPUTestExpectationEntry() 518 GPUTestExpectationsParser:: GPUTestExpectationEntry::GPUTestExpectationEntry()
519 : test_expectation(0), 519 : test_expectation(0),
520 line_number(0) { 520 line_number(0) {
521 } 521 }
522 522
OLDNEW
« no previous file with comments | « content/test/gpu/generate_webgl_conformance_test_list.py ('k') | content/test/gpu/test_support_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698