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

Side by Side Diff: content/shell/renderer/test_runner/WebTestInterfaces.h

Issue 595943002: WebTestInterfaces class to chromium c++ style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved comments Created 6 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
7
8 #include "base/memory/scoped_ptr.h"
9
10 namespace blink {
11 class WebAudioDevice;
12 class WebFrame;
13 class WebMediaStreamCenter;
14 class WebMediaStreamCenterClient;
15 class WebMIDIAccessor;
16 class WebMIDIAccessorClient;
17 class WebRTCPeerConnectionHandler;
18 class WebRTCPeerConnectionHandlerClient;
19 class WebThemeEngine;
20 class WebURL;
21 class WebView;
22 }
23
24 namespace content {
25
26 class TestInterfaces;
27 class WebTestDelegate;
28 class WebTestProxyBase;
29 class WebTestRunner;
30
31 class WebTestInterfaces {
32 public:
33 WebTestInterfaces();
34 ~WebTestInterfaces();
35
36 void setWebView(blink::WebView*, WebTestProxyBase*);
37 void setDelegate(WebTestDelegate*);
38 void bindTo(blink::WebFrame*);
39 void resetAll();
40 void setTestIsRunning(bool);
41 void configureForTestWithURL(const blink::WebURL&, bool generatePixels);
42
43 WebTestRunner* testRunner();
44 blink::WebThemeEngine* themeEngine();
45
46 blink::WebMediaStreamCenter* createMediaStreamCenter(blink::WebMediaStreamCe nterClient*);
47 blink::WebRTCPeerConnectionHandler* createWebRTCPeerConnectionHandler(blink: :WebRTCPeerConnectionHandlerClient*);
48
49 blink::WebMIDIAccessor* createMIDIAccessor(blink::WebMIDIAccessorClient*);
50
51 blink::WebAudioDevice* createAudioDevice(double sampleRate);
52
53 TestInterfaces* testInterfaces();
54
55 private:
56 scoped_ptr<TestInterfaces> m_interfaces;
57 };
58
59 } // namespace content
60
61 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/shell_render_process_observer.cc ('k') | content/shell/renderer/test_runner/WebTestInterfaces.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698