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

Unified Diff: content/shell/renderer/test_runner/WebTestInterfaces.cpp

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, 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/WebTestInterfaces.cpp
diff --git a/content/shell/renderer/test_runner/WebTestInterfaces.cpp b/content/shell/renderer/test_runner/WebTestInterfaces.cpp
deleted file mode 100644
index 513cc591bda6c3a8f5784c2c7fb35588dd1ee63c..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/WebTestInterfaces.cpp
+++ /dev/null
@@ -1,92 +0,0 @@
-// 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.
-
-#include "content/shell/renderer/test_runner/WebTestInterfaces.h"
-
-#include "content/shell/renderer/test_runner/mock_web_audio_device.h"
-#include "content/shell/renderer/test_runner/mock_web_media_stream_center.h"
-#include "content/shell/renderer/test_runner/mock_web_midi_accessor.h"
-#include "content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h"
-#include "content/shell/renderer/test_runner/test_interfaces.h"
-#include "content/shell/renderer/test_runner/test_runner.h"
-
-using namespace blink;
-
-namespace content {
-
-WebTestInterfaces::WebTestInterfaces()
- : m_interfaces(new TestInterfaces())
-{
-}
-
-WebTestInterfaces::~WebTestInterfaces()
-{
-}
-
-void WebTestInterfaces::setWebView(WebView* webView, WebTestProxyBase* proxy)
-{
- m_interfaces->SetWebView(webView, proxy);
-}
-
-void WebTestInterfaces::setDelegate(WebTestDelegate* delegate)
-{
- m_interfaces->SetDelegate(delegate);
-}
-
-void WebTestInterfaces::bindTo(WebFrame* frame)
-{
- m_interfaces->BindTo(frame);
-}
-
-void WebTestInterfaces::resetAll()
-{
- m_interfaces->ResetAll();
-}
-
-void WebTestInterfaces::setTestIsRunning(bool running)
-{
- m_interfaces->SetTestIsRunning(running);
-}
-
-void WebTestInterfaces::configureForTestWithURL(const WebURL& testURL, bool generatePixels)
-{
- m_interfaces->ConfigureForTestWithURL(testURL, generatePixels);
-}
-
-WebTestRunner* WebTestInterfaces::testRunner()
-{
- return m_interfaces->GetTestRunner();
-}
-
-WebThemeEngine* WebTestInterfaces::themeEngine()
-{
- return m_interfaces->GetThemeEngine();
-}
-
-TestInterfaces* WebTestInterfaces::testInterfaces()
-{
- return m_interfaces.get();
-}
-
-WebMediaStreamCenter* WebTestInterfaces::createMediaStreamCenter(WebMediaStreamCenterClient* client)
-{
- return new MockWebMediaStreamCenter(client, m_interfaces.get());
-}
-
-WebRTCPeerConnectionHandler* WebTestInterfaces::createWebRTCPeerConnectionHandler(WebRTCPeerConnectionHandlerClient* client)
-{
- return new MockWebRTCPeerConnectionHandler(client, m_interfaces.get());
-}
-
-WebMIDIAccessor* WebTestInterfaces::createMIDIAccessor(WebMIDIAccessorClient* client)
-{
- return new MockWebMIDIAccessor(client, m_interfaces.get());
-}
-
-WebAudioDevice* WebTestInterfaces::createAudioDevice(double sampleRate)
-{
- return new MockWebAudioDevice(sampleRate);
-}
-
-} // namespace content
« no previous file with comments | « content/shell/renderer/test_runner/WebTestInterfaces.h ('k') | content/shell/renderer/test_runner/web_test_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698