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

Unified Diff: content/browser/gpu/webgl_conformance_test.cc

Issue 15827008: Move gpu_test_config stuff from content/ to gpu/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_memory_test.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/webgl_conformance_test.cc
===================================================================
--- content/browser/gpu/webgl_conformance_test.cc (revision 202179)
+++ content/browser/gpu/webgl_conformance_test.cc (working copy)
@@ -13,8 +13,8 @@
#include "content/shell/shell.h"
#include "content/test/content_browser_test.h"
#include "content/test/content_browser_test_utils.h"
-#include "content/test/gpu/gpu_test_config.h"
-#include "content/test/gpu/gpu_test_expectations_parser.h"
+#include "gpu/config/gpu_test_config.h"
+#include "gpu/config/gpu_test_expectations_parser.h"
#include "net/base/net_util.h"
namespace content {
@@ -52,14 +52,18 @@
ASSERT_TRUE(bot_config_.IsValid())
<< "Invalid bot configuration";
- ASSERT_TRUE(test_expectations_.LoadTestExpectations(
- GPUTestExpectationsParser::kWebGLConformanceTest));
+ base::FilePath path;
+ ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &path));
+ path = path.Append(FILE_PATH_LITERAL("gpu"))
+ .Append(FILE_PATH_LITERAL("webgl_conformance_test_expectations.txt"));
+ ASSERT_TRUE(file_util::PathExists(path));
+ ASSERT_TRUE(test_expectations_.LoadTestExpectations(path));
}
void RunTest(std::string url, std::string test_name) {
int32 expectation =
test_expectations_.GetTestExpectation(test_name, bot_config_);
- if (expectation != GPUTestExpectationsParser::kGpuTestPass) {
+ if (expectation != gpu::GPUTestExpectationsParser::kGpuTestPass) {
LOG(WARNING) << "Test " << test_name << " is bypassed";
return;
}
@@ -76,8 +80,8 @@
private:
base::FilePath test_path_;
- GPUTestBotConfig bot_config_;
- GPUTestExpectationsParser test_expectations_;
+ gpu::GPUTestBotConfig bot_config_;
+ gpu::GPUTestExpectationsParser test_expectations_;
};
#define CONFORMANCE_TEST(name, url) \
« no previous file with comments | « content/browser/gpu/gpu_memory_test.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698