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

Side by Side Diff: content/browser/gpu/webgl_conformance_test.cc

Issue 11453026: Rename WebGLConformanceTests to WebGLConformanceTest (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/common/content_paths.h" 10 #include "content/public/common/content_paths.h"
11 #include "content/public/common/content_switches.h" 11 #include "content/public/common/content_switches.h"
12 #include "content/public/test/browser_test_utils.h" 12 #include "content/public/test/browser_test_utils.h"
13 #include "content/shell/shell.h" 13 #include "content/shell/shell.h"
14 #include "content/test/content_browser_test.h" 14 #include "content/test/content_browser_test.h"
15 #include "content/test/content_browser_test_utils.h" 15 #include "content/test/content_browser_test_utils.h"
16 #include "content/test/gpu/gpu_test_config.h" 16 #include "content/test/gpu/gpu_test_config.h"
17 #include "content/test/gpu/gpu_test_expectations_parser.h" 17 #include "content/test/gpu/gpu_test_expectations_parser.h"
18 #include "net/base/net_util.h" 18 #include "net/base/net_util.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class WebGLConformanceTests : public ContentBrowserTest { 22 class WebGLConformanceTest : public ContentBrowserTest {
23 public: 23 public:
24 WebGLConformanceTests() {} 24 WebGLConformanceTest() {}
25 25
26 virtual void SetUpCommandLine(CommandLine* command_line) { 26 virtual void SetUpCommandLine(CommandLine* command_line) {
27 // Allow privileged WebGL extensions. 27 // Allow privileged WebGL extensions.
28 command_line->AppendSwitch(switches::kEnablePrivilegedWebGLExtensions); 28 command_line->AppendSwitch(switches::kEnablePrivilegedWebGLExtensions);
29 } 29 }
30 30
31 virtual void SetUpInProcessBrowserTestFixture() { 31 virtual void SetUpInProcessBrowserTestFixture() {
32 FilePath webgl_conformance_path; 32 FilePath webgl_conformance_path;
33 PathService::Get(base::DIR_SOURCE_ROOT, &webgl_conformance_path); 33 PathService::Get(base::DIR_SOURCE_ROOT, &webgl_conformance_path);
34 webgl_conformance_path = webgl_conformance_path.Append( 34 webgl_conformance_path = webgl_conformance_path.Append(
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 EXPECT_STREQ("\"SUCCESS\"", message.c_str()) << message; 71 EXPECT_STREQ("\"SUCCESS\"", message.c_str()) << message;
72 } 72 }
73 73
74 private: 74 private:
75 FilePath test_path_; 75 FilePath test_path_;
76 GPUTestBotConfig bot_config_; 76 GPUTestBotConfig bot_config_;
77 GPUTestExpectationsParser test_expectations_; 77 GPUTestExpectationsParser test_expectations_;
78 }; 78 };
79 79
80 #define CONFORMANCE_TEST(name, url) \ 80 #define CONFORMANCE_TEST(name, url) \
81 IN_PROC_BROWSER_TEST_F(WebGLConformanceTests, MANUAL_##name) { \ 81 IN_PROC_BROWSER_TEST_F(WebGLConformanceTest, MANUAL_##name) { \
82 RunTest(url); \ 82 RunTest(url); \
83 } 83 }
84 84
85 // The test declarations are located in webgl_conformance_test_list_autogen.h, 85 // The test declarations are located in webgl_conformance_test_list_autogen.h,
86 // because the list is automatically generated by a script. 86 // because the list is automatically generated by a script.
87 // See: generate_webgl_conformance_test_list.py 87 // See: generate_webgl_conformance_test_list.py
88 #include "webgl_conformance_test_list_autogen.h" 88 #include "webgl_conformance_test_list_autogen.h"
89 89
90 } // namespace content 90 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/generate_webgl_conformance_test_list.py ('k') | content/browser/gpu/webgl_conformance_test_list_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698