OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 14 #include "chrome/test/base/test_launcher_utils.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
15 #include "chrome/test/test_launcher_utils.h" | |
16 #include "content/browser/tab_contents/tab_contents.h" | 16 #include "content/browser/tab_contents/tab_contents.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
19 #include "ui/gfx/gl/gl_implementation.h" | 19 #include "ui/gfx/gl/gl_implementation.h" |
20 | 20 |
21 class GPUBrowserTest : public InProcessBrowserTest { | 21 class GPUBrowserTest : public InProcessBrowserTest { |
22 protected: | 22 protected: |
23 GPUBrowserTest() { | 23 GPUBrowserTest() { |
24 EnableDOMAutomation(); | 24 EnableDOMAutomation(); |
25 } | 25 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ui_test_utils::DOMMessageQueue message_queue; | 83 ui_test_utils::DOMMessageQueue message_queue; |
84 | 84 |
85 ui_test_utils::NavigateToURL( | 85 ui_test_utils::NavigateToURL( |
86 browser(), | 86 browser(), |
87 net::FilePathToFileURL(gpu_test_dir_.AppendASCII("canvas_popup.html"))); | 87 net::FilePathToFileURL(gpu_test_dir_.AppendASCII("canvas_popup.html"))); |
88 | 88 |
89 std::string result; | 89 std::string result; |
90 ASSERT_TRUE(message_queue.WaitForMessage(&result)); | 90 ASSERT_TRUE(message_queue.WaitForMessage(&result)); |
91 EXPECT_EQ("\"SUCCESS\"", result); | 91 EXPECT_EQ("\"SUCCESS\"", result); |
92 } | 92 } |
OLD | NEW |