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

Side by Side Diff: chrome/test/gpu/webgl_conformance_tests.cc

Issue 10778044: Always enable dom automation for browser_tests. This avoids developers having to call EnableDOMAuto… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/gpu/gpu_pixel_browsertest.cc ('k') | chrome/test/perf/rendering/latency_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
11 #include "chrome/test/base/ui_test_utils.h" 11 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/public/common/content_switches.h" 12 #include "content/public/common/content_switches.h"
13 #include "content/test/gpu/gpu_test_config.h" 13 #include "content/test/gpu/gpu_test_config.h"
14 #include "content/test/gpu/gpu_test_expectations_parser.h" 14 #include "content/test/gpu/gpu_test_expectations_parser.h"
15 #include "net/base/net_util.h" 15 #include "net/base/net_util.h"
16 16
17 namespace { 17 namespace {
18 18
19 class WebGLConformanceTests : public InProcessBrowserTest { 19 class WebGLConformanceTests : public InProcessBrowserTest {
20 public: 20 public:
21 WebGLConformanceTests() {} 21 WebGLConformanceTests() {}
22 22
23 virtual void SetUpCommandLine(CommandLine* command_line) { 23 virtual void SetUpCommandLine(CommandLine* command_line) {
24 // This enables DOM automation for tab contents.
25 EnableDOMAutomation();
26
27 // Allow privileged WebGL extensions. 24 // Allow privileged WebGL extensions.
28 command_line->AppendSwitch(switches::kEnablePrivilegedWebGLExtensions); 25 command_line->AppendSwitch(switches::kEnablePrivilegedWebGLExtensions);
29 } 26 }
30 27
31 virtual void SetUpInProcessBrowserTestFixture() { 28 virtual void SetUpInProcessBrowserTestFixture() {
32 FilePath webgl_conformance_path; 29 FilePath webgl_conformance_path;
33 PathService::Get(base::DIR_SOURCE_ROOT, &webgl_conformance_path); 30 PathService::Get(base::DIR_SOURCE_ROOT, &webgl_conformance_path);
34 webgl_conformance_path = webgl_conformance_path.Append( 31 webgl_conformance_path = webgl_conformance_path.Append(
35 FILE_PATH_LITERAL("third_party")); 32 FILE_PATH_LITERAL("third_party"));
36 webgl_conformance_path = webgl_conformance_path.Append( 33 webgl_conformance_path = webgl_conformance_path.Append(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 IN_PROC_BROWSER_TEST_F(WebGLConformanceTests, name) { \ 79 IN_PROC_BROWSER_TEST_F(WebGLConformanceTests, name) { \
83 RunTest(url); \ 80 RunTest(url); \
84 } 81 }
85 82
86 // The test declarations are located in webgl_conformance_test_list_autogen.h, 83 // The test declarations are located in webgl_conformance_test_list_autogen.h,
87 // because the list is automatically generated by a script. 84 // because the list is automatically generated by a script.
88 // See: generate_webgl_conformance_test_list.py 85 // See: generate_webgl_conformance_test_list.py
89 #include "webgl_conformance_test_list_autogen.h" 86 #include "webgl_conformance_test_list_autogen.h"
90 87
91 } // namespace 88 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/gpu/gpu_pixel_browsertest.cc ('k') | chrome/test/perf/rendering/latency_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698