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

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

Issue 1308973005: html_viewer/web_view: An app for running layout-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix-win-build Created 5 years, 3 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/callback.h"
8 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
9 #include "components/test_runner/test_runner_export.h" 10 #include "components/test_runner/test_runner_export.h"
10 11
11 namespace blink { 12 namespace blink {
12 class WebAppBannerClient; 13 class WebAppBannerClient;
13 class WebAudioDevice; 14 class WebAudioDevice;
14 class WebFrame; 15 class WebFrame;
15 class WebMediaStreamCenter; 16 class WebMediaStreamCenter;
16 class WebMediaStreamCenterClient; 17 class WebMediaStreamCenterClient;
17 class WebMIDIAccessor; 18 class WebMIDIAccessor;
(...skipping 11 matching lines...) Expand all
29 class TestInterfaces; 30 class TestInterfaces;
30 class WebTestDelegate; 31 class WebTestDelegate;
31 class WebTestProxyBase; 32 class WebTestProxyBase;
32 class WebTestRunner; 33 class WebTestRunner;
33 34
34 class TEST_RUNNER_EXPORT WebTestInterfaces { 35 class TEST_RUNNER_EXPORT WebTestInterfaces {
35 public: 36 public:
36 WebTestInterfaces(); 37 WebTestInterfaces();
37 ~WebTestInterfaces(); 38 ~WebTestInterfaces();
38 39
40 void set_termination_callback(const base::Closure& callback) {
41 termination_ = callback;
42 }
43
39 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); 44 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy);
40 void SetDelegate(WebTestDelegate* delegate); 45 void SetDelegate(WebTestDelegate* delegate);
41 void BindTo(blink::WebFrame* frame); 46 void BindTo(blink::WebFrame* frame);
42 void ResetAll(); 47 void ResetAll();
43 void SetTestIsRunning(bool running); 48 void SetTestIsRunning(bool running);
44 void ConfigureForTestWithURL(const blink::WebURL& test_url, 49 void ConfigureForTestWithURL(const blink::WebURL& test_url,
45 bool generate_pixels); 50 bool generate_pixels);
46 51
47 WebTestRunner* TestRunner(); 52 WebTestRunner* TestRunner();
48 blink::WebThemeEngine* ThemeEngine(); 53 blink::WebThemeEngine* ThemeEngine();
49 54
50 blink::WebMediaStreamCenter* CreateMediaStreamCenter( 55 blink::WebMediaStreamCenter* CreateMediaStreamCenter(
51 blink::WebMediaStreamCenterClient* client); 56 blink::WebMediaStreamCenterClient* client);
52 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler( 57 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler(
53 blink::WebRTCPeerConnectionHandlerClient* client); 58 blink::WebRTCPeerConnectionHandlerClient* client);
54 59
55 blink::WebMIDIAccessor* CreateMIDIAccessor( 60 blink::WebMIDIAccessor* CreateMIDIAccessor(
56 blink::WebMIDIAccessorClient* client); 61 blink::WebMIDIAccessorClient* client);
57 62
58 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); 63 blink::WebAudioDevice* CreateAudioDevice(double sample_rate);
59 64
60 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); 65 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient();
61 AppBannerClient* GetAppBannerClient(); 66 AppBannerClient* GetAppBannerClient();
62 67
63 TestInterfaces* GetTestInterfaces(); 68 TestInterfaces* GetTestInterfaces();
64 69
65 private: 70 private:
66 scoped_ptr<TestInterfaces> interfaces_; 71 scoped_ptr<TestInterfaces> interfaces_;
72 base::Closure termination_;
67 73
68 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); 74 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
69 }; 75 };
70 76
71 } // namespace test_runner 77 } // namespace test_runner
72 78
73 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ 79 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698