[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / content / shell / renderer / test_runner / WebTestInterfaces.h
blobcfcc146fb17f4774127f93d820af48ed133776ef
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.
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
8 #include "base/memory/scoped_ptr.h"
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;
24 namespace content {
25 class WebTestProxyBase;
28 namespace WebTestRunner {
30 class TestInterfaces;
31 class WebTestDelegate;
32 class WebTestRunner;
34 class WebTestInterfaces {
35 public:
36 WebTestInterfaces();
37 ~WebTestInterfaces();
39 void setWebView(blink::WebView*, content::WebTestProxyBase*);
40 void setDelegate(WebTestDelegate*);
41 void bindTo(blink::WebFrame*);
42 void resetAll();
43 void setTestIsRunning(bool);
44 void configureForTestWithURL(const blink::WebURL&, bool generatePixels);
46 WebTestRunner* testRunner();
47 blink::WebThemeEngine* themeEngine();
49 blink::WebMediaStreamCenter* createMediaStreamCenter(blink::WebMediaStreamCenterClient*);
50 blink::WebRTCPeerConnectionHandler* createWebRTCPeerConnectionHandler(blink::WebRTCPeerConnectionHandlerClient*);
52 blink::WebMIDIAccessor* createMIDIAccessor(blink::WebMIDIAccessorClient*);
54 blink::WebAudioDevice* createAudioDevice(double sampleRate);
56 TestInterfaces* testInterfaces();
58 private:
59 scoped_ptr<TestInterfaces> m_interfaces;
64 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_