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

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

Issue 1841833005: Revert of Extract WebFrameClient implementation out of WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/test_runner/test_runner_export.h" 10 #include "components/test_runner/test_runner_export.h"
11 11
12 namespace blink { 12 namespace blink {
13 class WebAppBannerClient; 13 class WebAppBannerClient;
14 class WebAudioDevice; 14 class WebAudioDevice;
15 class WebFrame; 15 class WebFrame;
16 class WebFrameClient;
17 class WebMediaStreamCenter; 16 class WebMediaStreamCenter;
18 class WebMediaStreamCenterClient; 17 class WebMediaStreamCenterClient;
19 class WebMIDIAccessor; 18 class WebMIDIAccessor;
20 class WebMIDIAccessorClient; 19 class WebMIDIAccessorClient;
21 class WebRTCPeerConnectionHandler; 20 class WebRTCPeerConnectionHandler;
22 class WebRTCPeerConnectionHandlerClient; 21 class WebRTCPeerConnectionHandlerClient;
23 class WebThemeEngine; 22 class WebThemeEngine;
24 class WebURL; 23 class WebURL;
25 class WebView; 24 class WebView;
26 } 25 }
27 26
28 namespace test_runner { 27 namespace test_runner {
29 28
30 class AppBannerClient; 29 class AppBannerClient;
31 class TestInterfaces; 30 class TestInterfaces;
32 class WebFrameTestClient;
33 class WebTestDelegate; 31 class WebTestDelegate;
34 class WebTestProxyBase; 32 class WebTestProxyBase;
35 class WebTestRunner; 33 class WebTestRunner;
36 34
37 class TEST_RUNNER_EXPORT WebTestInterfaces { 35 class TEST_RUNNER_EXPORT WebTestInterfaces {
38 public: 36 public:
39 WebTestInterfaces(); 37 WebTestInterfaces();
40 ~WebTestInterfaces(); 38 ~WebTestInterfaces();
41 39
42 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); 40 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy);
(...skipping 16 matching lines...) Expand all
59 blink::WebMIDIAccessor* CreateMIDIAccessor( 57 blink::WebMIDIAccessor* CreateMIDIAccessor(
60 blink::WebMIDIAccessorClient* client); 58 blink::WebMIDIAccessorClient* client);
61 59
62 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); 60 blink::WebAudioDevice* CreateAudioDevice(double sample_rate);
63 61
64 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); 62 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient();
65 AppBannerClient* GetAppBannerClient(); 63 AppBannerClient* GetAppBannerClient();
66 64
67 TestInterfaces* GetTestInterfaces(); 65 TestInterfaces* GetTestInterfaces();
68 66
69 // Gets a borrowed pointer to a WebFrameClient implementation providing
70 // test behavior (i.e. forwarding javascript console output to the test
71 // harness). The caller should guarantee that the returned pointer
72 // won't be used beyond the lifetime of WebTestInterfaces.
73 blink::WebFrameClient* GetWebFrameTestClient();
74
75 private: 67 private:
76 scoped_ptr<TestInterfaces> interfaces_; 68 scoped_ptr<TestInterfaces> interfaces_;
77 scoped_ptr<WebFrameTestClient> web_frame_test_client_;
78 69
79 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); 70 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
80 }; 71 };
81 72
82 } // namespace test_runner 73 } // namespace test_runner
83 74
84 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ 75 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698