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

Unified Diff: content/browser/screen_orientation/screen_orientation_provider_unittest.cc

Issue 2702103002: [ScreenOrientation] De-associate device.mojom.ScreenOrientation from legacy IPC channel.
Patch Set: Synchronize response of lock success with legacy IPC ViewMsg_Resize. 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: content/browser/screen_orientation/screen_orientation_provider_unittest.cc
diff --git a/content/browser/screen_orientation/screen_orientation_provider_unittest.cc b/content/browser/screen_orientation/screen_orientation_provider_unittest.cc
index 2a7a4e5410e9cccaf1af818005f128cde669840d..dfc4f48e81c04b194ad2e5363acd29c4dd80b75b 100644
--- a/content/browser/screen_orientation/screen_orientation_provider_unittest.cc
+++ b/content/browser/screen_orientation/screen_orientation_provider_unittest.cc
@@ -80,7 +80,8 @@ class FakeWebContentsDelegate : public WebContentsDelegate {
};
void LockResultCallback(base::Optional<ScreenOrientationLockResult>* out_result,
- ScreenOrientationLockResult result) {
+ ScreenOrientationLockResult result,
+ blink::WebScreenOrientationLockType lock) {
*out_result = result;
}
@@ -100,14 +101,14 @@ class ScreenOrientationProviderTest : public RenderViewHostImplTestHarness {
void CallLockAndGetResult(
blink::WebScreenOrientationLockType orientation,
base::Optional<ScreenOrientationLockResult>* out_result) {
- contents()->GetScreenOrientationProviderForTesting()->LockOrientation(
+ contents()->GetScreenOrientationProvider()->LockOrientation(
orientation, base::Bind(&LockResultCallback, out_result));
base::RunLoop().RunUntilIdle();
}
void CallUnlock() {
- contents()->GetScreenOrientationProviderForTesting()->UnlockOrientation();
+ contents()->GetScreenOrientationProvider()->UnlockOrientation();
}
private:
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698