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

Side by Side Diff: components/test_runner/web_test_interfaces.h

Issue 2238573002: Add WebWidgetTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing files Created 4 years, 4 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
« no previous file with comments | « components/test_runner/test_runner.gyp ('k') | components/test_runner/web_test_interfaces.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 namespace test_runner { 30 namespace test_runner {
31 31
32 class AppBannerClient; 32 class AppBannerClient;
33 class TestInterfaces; 33 class TestInterfaces;
34 class WebFrameTestClient; 34 class WebFrameTestClient;
35 class WebFrameTestProxyBase; 35 class WebFrameTestProxyBase;
36 class WebTestDelegate; 36 class WebTestDelegate;
37 class WebViewTestProxyBase; 37 class WebViewTestProxyBase;
38 class WebWidgetTestProxyBase;
38 class WebTestRunner; 39 class WebTestRunner;
39 class WebViewTestClient; 40 class WebViewTestClient;
40 class WebWidgetTestClient; 41 class WebWidgetTestClient;
41 42
42 class TEST_RUNNER_EXPORT WebTestInterfaces { 43 class TEST_RUNNER_EXPORT WebTestInterfaces {
43 public: 44 public:
44 WebTestInterfaces(); 45 WebTestInterfaces();
45 ~WebTestInterfaces(); 46 ~WebTestInterfaces();
46 47
47 void SetMainView(blink::WebView* web_view); 48 void SetMainView(blink::WebView* web_view);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Creates a WebViewClient implementation providing test behavior (i.e. 80 // Creates a WebViewClient implementation providing test behavior (i.e.
80 // providing a mocked speech recognizer). The caller should guarantee that 81 // providing a mocked speech recognizer). The caller should guarantee that
81 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces 82 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces
82 // and/or the lifetime of |web_view_test_proxy_base|. 83 // and/or the lifetime of |web_view_test_proxy_base|.
83 std::unique_ptr<WebViewTestClient> CreateWebViewTestClient( 84 std::unique_ptr<WebViewTestClient> CreateWebViewTestClient(
84 WebViewTestProxyBase* web_view_test_proxy_base); 85 WebViewTestProxyBase* web_view_test_proxy_base);
85 86
86 // Creates a WebWidgetClient implementation providing test behavior (i.e. 87 // Creates a WebWidgetClient implementation providing test behavior (i.e.
87 // providing a mocked screen orientation). The caller should guarantee that 88 // providing a mocked screen orientation). The caller should guarantee that
88 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces 89 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces
89 // and/or the lifetime of |web_view_test_proxy_base|. 90 // and/or the lifetime of |web_widget_test_proxy_base|.
90 std::unique_ptr<WebWidgetTestClient> CreateWebWidgetTestClient( 91 std::unique_ptr<WebWidgetTestClient> CreateWebWidgetTestClient(
91 WebViewTestProxyBase* web_view_test_proxy_base); 92 WebWidgetTestProxyBase* web_widget_test_proxy_base);
92 93
93 // Gets a list of currently opened windows created by the current test. 94 // Gets a list of currently opened windows created by the current test.
94 std::vector<blink::WebView*> GetWindowList(); 95 std::vector<blink::WebView*> GetWindowList();
95 96
96 private: 97 private:
97 std::unique_ptr<TestInterfaces> interfaces_; 98 std::unique_ptr<TestInterfaces> interfaces_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); 100 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
100 }; 101 };
101 102
102 } // namespace test_runner 103 } // namespace test_runner
103 104
104 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ 105 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.gyp ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698