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

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

Issue 12221151: Re-enable WebGL conformance tests on Win GPU bots. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | 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 182027)
+++ content/browser/gpu/webgl_conformance_test.cc (working copy)
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#if !defined(OS_WIN)
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_service.h"
@@ -17,9 +16,6 @@
#include "content/test/gpu/gpu_test_config.h"
#include "content/test/gpu/gpu_test_expectations_parser.h"
#include "net/base/net_util.h"
-#else
-#include "content/test/content_browser_test.h"
-#endif
namespace content {
@@ -27,7 +23,6 @@
public:
WebGLConformanceTest() {}
-#if !defined(OS_WIN)
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
// Allow privileged WebGL extensions.
command_line->AppendSwitch(switches::kEnablePrivilegedWebGLExtensions);
@@ -55,10 +50,8 @@
ASSERT_TRUE(test_expectations_.LoadTestExpectations(
GPUTestExpectationsParser::kWebGLConformanceTest));
}
-#endif
void RunTest(std::string url, std::string test_name) {
-#if !defined(OS_WIN)
int32 expectation =
test_expectations_.GetTestExpectation(test_name, bot_config_);
if (expectation != GPUTestExpectationsParser::kGpuTestPass) {
@@ -74,15 +67,12 @@
ASSERT_TRUE(message_queue.WaitForMessage(&message));
EXPECT_STREQ("\"SUCCESS\"", message.c_str()) << message;
-#endif
}
-#if !defined(OS_WIN)
private:
base::FilePath test_path_;
GPUTestBotConfig bot_config_;
GPUTestExpectationsParser test_expectations_;
-#endif
};
#define CONFORMANCE_TEST(name, url) \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698