root/content/shell/renderer/test_runner/WebTestInterfaces.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
#define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_

#include "base/memory/scoped_ptr.h"

namespace blink {
class WebAudioDevice;
class WebFrame;
class WebMediaStreamCenter;
class WebMediaStreamCenterClient;
class WebMIDIAccessor;
class WebMIDIAccessorClient;
class WebRTCPeerConnectionHandler;
class WebRTCPeerConnectionHandlerClient;
class WebThemeEngine;
class WebURL;
class WebView;
}

namespace WebTestRunner {

class TestInterfaces;
class WebTestDelegate;
class WebTestProxyBase;
class WebTestRunner;

class WebTestInterfaces {
public:
    WebTestInterfaces();
    ~WebTestInterfaces();

    void setWebView(blink::WebView*, WebTestProxyBase*);
    void setDelegate(WebTestDelegate*);
    void bindTo(blink::WebFrame*);
    void resetAll();
    void setTestIsRunning(bool);
    void configureForTestWithURL(const blink::WebURL&, bool generatePixels);

    WebTestRunner* testRunner();
    blink::WebThemeEngine* themeEngine();

    blink::WebMediaStreamCenter* createMediaStreamCenter(blink::WebMediaStreamCenterClient*);
    blink::WebRTCPeerConnectionHandler* createWebRTCPeerConnectionHandler(blink::WebRTCPeerConnectionHandlerClient*);

    blink::WebMIDIAccessor* createMIDIAccessor(blink::WebMIDIAccessorClient*);

    blink::WebAudioDevice* createAudioDevice(double sampleRate);

    TestInterfaces* testInterfaces();

private:
    scoped_ptr<TestInterfaces> m_interfaces;
};

}

#endif  // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_

/* [<][>][^][v][top][bottom][index][help] */