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

Unified Diff: components/test_runner/web_test_interfaces.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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: components/test_runner/web_test_interfaces.h
diff --git a/components/test_runner/web_test_interfaces.h b/components/test_runner/web_test_interfaces.h
deleted file mode 100644
index 4a205b71edc5c6b312566b0e9de3f98d8e1030f8..0000000000000000000000000000000000000000
--- a/components/test_runner/web_test_interfaces.h
+++ /dev/null
@@ -1,101 +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.
-
-#ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
-#define COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/macros.h"
-#include "components/test_runner/test_runner_export.h"
-
-namespace blink {
-class WebAudioDevice;
-class WebFrameClient;
-class WebMediaStreamCenter;
-class WebMediaStreamCenterClient;
-class WebMIDIAccessor;
-class WebMIDIAccessorClient;
-class WebRTCPeerConnectionHandler;
-class WebRTCPeerConnectionHandlerClient;
-class WebThemeEngine;
-class WebURL;
-class WebView;
-}
-
-namespace test_runner {
-
-class TestInterfaces;
-class WebFrameTestClient;
-class WebFrameTestProxyBase;
-class WebTestDelegate;
-class WebViewTestProxyBase;
-class WebWidgetTestProxyBase;
-class WebTestRunner;
-class WebViewTestClient;
-class WebWidgetTestClient;
-
-class TEST_RUNNER_EXPORT WebTestInterfaces {
- public:
- WebTestInterfaces();
- ~WebTestInterfaces();
-
- void SetMainView(blink::WebView* web_view);
- void SetDelegate(WebTestDelegate* delegate);
- void ResetAll();
- void SetTestIsRunning(bool running);
- void ConfigureForTestWithURL(const blink::WebURL& test_url,
- bool generate_pixels);
-
- WebTestRunner* TestRunner();
- blink::WebThemeEngine* ThemeEngine();
-
- blink::WebMediaStreamCenter* CreateMediaStreamCenter(
- blink::WebMediaStreamCenterClient* client);
- blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler(
- blink::WebRTCPeerConnectionHandlerClient* client);
-
- blink::WebMIDIAccessor* CreateMIDIAccessor(
- blink::WebMIDIAccessorClient* client);
-
- blink::WebAudioDevice* CreateAudioDevice(double sample_rate,
- int frames_per_buffer);
-
- TestInterfaces* GetTestInterfaces();
-
- // Creates a WebFrameClient implementation providing test behavior (i.e.
- // forwarding javascript console output to the test harness). The caller
- // should guarantee that the returned object won't be used beyond the lifetime
- // of WebTestInterfaces and/or the lifetime of |web_view_test_proxy_base|.
- std::unique_ptr<WebFrameTestClient> CreateWebFrameTestClient(
- WebViewTestProxyBase* web_view_test_proxy_base,
- WebFrameTestProxyBase* web_frame_test_proxy_base);
-
- // Creates a WebViewClient implementation providing test behavior (i.e.
- // providing a mocked speech recognizer). The caller should guarantee that
- // the returned pointer won't be used beyond the lifetime of WebTestInterfaces
- // and/or the lifetime of |web_view_test_proxy_base|.
- std::unique_ptr<WebViewTestClient> CreateWebViewTestClient(
- WebViewTestProxyBase* web_view_test_proxy_base);
-
- // Creates a WebWidgetClient implementation providing test behavior (i.e.
- // providing a mocked screen orientation). The caller should guarantee that
- // the returned pointer won't be used beyond the lifetime of WebTestInterfaces
- // and/or the lifetime of |web_widget_test_proxy_base|.
- std::unique_ptr<WebWidgetTestClient> CreateWebWidgetTestClient(
- WebWidgetTestProxyBase* web_widget_test_proxy_base);
-
- // Gets a list of currently opened windows created by the current test.
- std::vector<blink::WebView*> GetWindowList();
-
- private:
- std::unique_ptr<TestInterfaces> interfaces_;
-
- DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
-};
-
-} // namespace test_runner
-
-#endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_

Powered by Google App Engine
This is Rietveld 408576698