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

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

Issue 12213066: Use base namespace for FilePath in content/browser (Closed) Base URL: svn://svn.chromium.org/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 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"
(...skipping 11 matching lines...) Expand all
22 class WebGLConformanceTest : public ContentBrowserTest { 22 class WebGLConformanceTest : public ContentBrowserTest {
23 public: 23 public:
24 WebGLConformanceTest() {} 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 base::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(
35 FILE_PATH_LITERAL("third_party")); 35 FILE_PATH_LITERAL("third_party"));
36 webgl_conformance_path = webgl_conformance_path.Append( 36 webgl_conformance_path = webgl_conformance_path.Append(
37 FILE_PATH_LITERAL("webgl_conformance")); 37 FILE_PATH_LITERAL("webgl_conformance"));
38 ASSERT_TRUE(file_util::DirectoryExists(webgl_conformance_path)) 38 ASSERT_TRUE(file_util::DirectoryExists(webgl_conformance_path))
39 << "Missing conformance tests: " << webgl_conformance_path.value(); 39 << "Missing conformance tests: " << webgl_conformance_path.value();
40 40
41 PathService::Get(DIR_TEST_DATA, &test_path_); 41 PathService::Get(DIR_TEST_DATA, &test_path_);
42 test_path_ = test_path_.Append(FILE_PATH_LITERAL("gpu")); 42 test_path_ = test_path_.Append(FILE_PATH_LITERAL("gpu"));
(...skipping 24 matching lines...) Expand all
67 NavigateToURL(shell(), net::FilePathToFileURL(test_path_)); 67 NavigateToURL(shell(), net::FilePathToFileURL(test_path_));
68 68
69 std::string message; 69 std::string message;
70 NavigateToURL(shell(), GURL("javascript:start('" + url + "');")); 70 NavigateToURL(shell(), GURL("javascript:start('" + url + "');"));
71 ASSERT_TRUE(message_queue.WaitForMessage(&message)); 71 ASSERT_TRUE(message_queue.WaitForMessage(&message));
72 72
73 EXPECT_STREQ("\"SUCCESS\"", message.c_str()) << message; 73 EXPECT_STREQ("\"SUCCESS\"", message.c_str()) << message;
74 } 74 }
75 75
76 private: 76 private:
77 FilePath test_path_; 77 base::FilePath test_path_;
78 GPUTestBotConfig bot_config_; 78 GPUTestBotConfig bot_config_;
79 GPUTestExpectationsParser test_expectations_; 79 GPUTestExpectationsParser test_expectations_;
80 }; 80 };
81 81
82 #define CONFORMANCE_TEST(name, url) \ 82 #define CONFORMANCE_TEST(name, url) \
83 IN_PROC_BROWSER_TEST_F(WebGLConformanceTest, MANUAL_##name) { \ 83 IN_PROC_BROWSER_TEST_F(WebGLConformanceTest, MANUAL_##name) { \
84 RunTest(url); \ 84 RunTest(url); \
85 } 85 }
86 86
87 // The test declarations are located in webgl_conformance_test_list_autogen.h, 87 // The test declarations are located in webgl_conformance_test_list_autogen.h,
88 // because the list is automatically generated by a script. 88 // because the list is automatically generated by a script.
89 // See: generate_webgl_conformance_test_list.py 89 // See: generate_webgl_conformance_test_list.py
90 #include "webgl_conformance_test_list_autogen.h" 90 #include "webgl_conformance_test_list_autogen.h"
91 91
92 } // namespace content 92 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/hyphenator/hyphenator_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698