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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1807733002: Make MockScreenOrientationClient an internal detail of components/test_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-app-banner-dep
Patch Set: Rebasing... Created 4 years, 9 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/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index 93d19f580f9037f0eedb85ee5d6b4bdc8c036fac..758d945386f449085892f41e38e5529c68ebe3c2 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -32,7 +32,6 @@
#include "components/test_runner/gamepad_controller.h"
#include "components/test_runner/layout_dump.h"
#include "components/test_runner/layout_dump_flags.h"
-#include "components/test_runner/mock_screen_orientation_client.h"
#include "components/test_runner/test_interfaces.h"
#include "components/test_runner/web_task.h"
#include "components/test_runner/web_test_interfaces.h"
@@ -107,7 +106,6 @@ using blink::WebString;
using blink::WebURL;
using blink::WebURLError;
using blink::WebURLRequest;
-using blink::WebScreenOrientationType;
using blink::WebTestingSupport;
using blink::WebTraceLocation;
using blink::WebThread;
@@ -290,26 +288,6 @@ void BlinkTestRunner::SetDeviceOrientationData(
SetMockDeviceOrientationData(data);
}
-void BlinkTestRunner::SetScreenOrientation(
- const WebScreenOrientationType& orientation) {
- test_runner::MockScreenOrientationClient* mock_client =
- proxy()->GetScreenOrientationClientMock();
- mock_client->UpdateDeviceOrientation(
- render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation);
-}
-
-void BlinkTestRunner::DisableMockScreenOrientation() {
- test_runner::MockScreenOrientationClient* mock_client =
- proxy()->GetScreenOrientationClientMock();
- mock_client->SetDisabled(true);
-}
-
-void BlinkTestRunner::ResetScreenOrientation() {
- test_runner::MockScreenOrientationClient* mock_client =
- proxy()->GetScreenOrientationClientMock();
- mock_client->ResetData();
-}
-
void BlinkTestRunner::PrintMessage(const std::string& message) {
Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
}

Powered by Google App Engine
This is Rietveld 408576698