OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ |
6 #define CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "content/shell/test_runner/mock_web_theme_engine.h" | 13 #include "content/shell/test_runner/mock_web_theme_engine.h" |
14 #include "third_party/WebKit/public/platform/WebNonCopyable.h" | 14 #include "third_party/WebKit/public/platform/WebNonCopyable.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 class WebFrame; | 17 class WebLocalFrame; |
18 class WebThemeEngine; | 18 class WebThemeEngine; |
19 class WebURL; | 19 class WebURL; |
20 class WebView; | 20 class WebView; |
21 } | 21 } |
22 | 22 |
23 namespace test_runner { | 23 namespace test_runner { |
24 | 24 |
25 class GamepadController; | 25 class GamepadController; |
26 class TestRunner; | 26 class TestRunner; |
27 class WebTestDelegate; | 27 class WebTestDelegate; |
28 class WebViewTestProxyBase; | 28 class WebViewTestProxyBase; |
29 | 29 |
30 class TestInterfaces { | 30 class TestInterfaces { |
31 public: | 31 public: |
32 TestInterfaces(); | 32 TestInterfaces(); |
33 ~TestInterfaces(); | 33 ~TestInterfaces(); |
34 | 34 |
35 void SetMainView(blink::WebView* web_view); | 35 void SetMainView(blink::WebView* web_view); |
36 void SetDelegate(WebTestDelegate* delegate); | 36 void SetDelegate(WebTestDelegate* delegate); |
37 void BindTo(blink::WebFrame* frame); | 37 void BindTo(blink::WebLocalFrame* frame); |
38 void ResetTestHelperControllers(); | 38 void ResetTestHelperControllers(); |
39 void ResetAll(); | 39 void ResetAll(); |
40 bool TestIsRunning(); | 40 bool TestIsRunning(); |
41 void SetTestIsRunning(bool running); | 41 void SetTestIsRunning(bool running); |
42 void ConfigureForTestWithURL(const blink::WebURL& test_url, | 42 void ConfigureForTestWithURL(const blink::WebURL& test_url, |
43 bool generate_pixels); | 43 bool generate_pixels); |
44 | 44 |
45 void WindowOpened(WebViewTestProxyBase* proxy); | 45 void WindowOpened(WebViewTestProxyBase* proxy); |
46 void WindowClosed(WebViewTestProxyBase* proxy); | 46 void WindowClosed(WebViewTestProxyBase* proxy); |
47 | 47 |
(...skipping 11 matching lines...) Expand all Loading... |
59 blink::WebView* main_view_; | 59 blink::WebView* main_view_; |
60 | 60 |
61 std::unique_ptr<MockWebThemeEngine> theme_engine_; | 61 std::unique_ptr<MockWebThemeEngine> theme_engine_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); | 63 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace test_runner | 66 } // namespace test_runner |
67 | 67 |
68 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ | 68 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ |
OLD | NEW |