Enable webgl conformance tests under content/test/gpu in content_browsertests
It enables the webgl conformace test in content_browsertests basing on
chrome/test/gpu.
BUG=149892
TEST=
Review URL: https://chromiumcodereview.appspot.com/10916334
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158742 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/test/gpu/gpu_test_expectations_parser.cc b/content/test/gpu/gpu_test_expectations_parser.cc
index 8caedc7..756239d 100644
--- a/content/test/gpu/gpu_test_expectations_parser.cc
+++ b/content/test/gpu/gpu_test_expectations_parser.cc
@@ -12,6 +12,7 @@
#include "base/string_split.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
+#include "content/public/common/content_paths.h"
namespace {
@@ -499,11 +500,9 @@
bool rt = true;
switch (profile) {
case kWebGLConformanceTest:
- rt = PathService::Get(base::DIR_SOURCE_ROOT, path);
+ rt = PathService::Get(content::DIR_TEST_DATA, path);
if (rt) {
- *path = path->Append(FILE_PATH_LITERAL("chrome"))
- .Append(FILE_PATH_LITERAL("test"))
- .Append(FILE_PATH_LITERAL("gpu"))
+ *path = path->Append(FILE_PATH_LITERAL("gpu"))
.Append(FILE_PATH_LITERAL(
"webgl_conformance_test_expectations.txt"));
rt = file_util::PathExists(*path);