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

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

Issue 2213653002: Revert of Add WebWidgetTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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;
39 class WebTestRunner; 38 class WebTestRunner;
40 class WebViewTestClient; 39 class WebViewTestClient;
41 class WebWidgetTestClient; 40 class WebWidgetTestClient;
42 41
43 class TEST_RUNNER_EXPORT WebTestInterfaces { 42 class TEST_RUNNER_EXPORT WebTestInterfaces {
44 public: 43 public:
45 WebTestInterfaces(); 44 WebTestInterfaces();
46 ~WebTestInterfaces(); 45 ~WebTestInterfaces();
47 46
48 void SetMainView(blink::WebView* web_view); 47 void SetMainView(blink::WebView* web_view);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Creates a WebViewClient implementation providing test behavior (i.e. 79 // Creates a WebViewClient implementation providing test behavior (i.e.
81 // providing a mocked speech recognizer). The caller should guarantee that 80 // providing a mocked speech recognizer). The caller should guarantee that
82 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces 81 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces
83 // and/or the lifetime of |web_view_test_proxy_base|. 82 // and/or the lifetime of |web_view_test_proxy_base|.
84 std::unique_ptr<WebViewTestClient> CreateWebViewTestClient( 83 std::unique_ptr<WebViewTestClient> CreateWebViewTestClient(
85 WebViewTestProxyBase* web_view_test_proxy_base); 84 WebViewTestProxyBase* web_view_test_proxy_base);
86 85
87 // Creates a WebWidgetClient implementation providing test behavior (i.e. 86 // Creates a WebWidgetClient implementation providing test behavior (i.e.
88 // providing a mocked screen orientation). The caller should guarantee that 87 // providing a mocked screen orientation). The caller should guarantee that
89 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces 88 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces
90 // and/or the lifetime of |web_widget_test_proxy_base|. 89 // and/or the lifetime of |web_view_test_proxy_base|.
91 std::unique_ptr<WebWidgetTestClient> CreateWebWidgetTestClient( 90 std::unique_ptr<WebWidgetTestClient> CreateWebWidgetTestClient(
92 WebWidgetTestProxyBase* web_widget_test_proxy_base); 91 WebViewTestProxyBase* web_view_test_proxy_base);
93 92
94 // Gets a list of currently opened windows created by the current test. 93 // Gets a list of currently opened windows created by the current test.
95 std::vector<blink::WebView*> GetWindowList(); 94 std::vector<blink::WebView*> GetWindowList();
96 95
97 private: 96 private:
98 std::unique_ptr<TestInterfaces> interfaces_; 97 std::unique_ptr<TestInterfaces> interfaces_;
99 98
100 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); 99 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
101 }; 100 };
102 101
103 } // namespace test_runner 102 } // namespace test_runner
104 103
105 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ 104 #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