OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |