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

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

Issue 2682643002: [ScreenOrientation] Hide ScreenOrientationProvider inside WebContentsImpl. (Closed)
Patch Set: Rebase only 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 ba44f6f0ef0a15949162b2af93f5fab3327c1b5c..2a7a4e5410e9cccaf1af818005f128cde669840d 100644
--- a/content/browser/screen_orientation/screen_orientation_provider_unittest.cc
+++ b/content/browser/screen_orientation/screen_orientation_provider_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/public/browser/screen_orientation_provider.h"
+#include "content/browser/screen_orientation/screen_orientation_provider.h"
#include "base/optional.h"
#include "base/run_loop.h"
@@ -100,14 +100,14 @@ class ScreenOrientationProviderTest : public RenderViewHostImplTestHarness {
void CallLockAndGetResult(
blink::WebScreenOrientationLockType orientation,
base::Optional<ScreenOrientationLockResult>* out_result) {
- contents()->GetScreenOrientationProvider()->LockOrientation(
+ contents()->GetScreenOrientationProviderForTesting()->LockOrientation(
orientation, base::Bind(&LockResultCallback, out_result));
base::RunLoop().RunUntilIdle();
}
void CallUnlock() {
- contents()->GetScreenOrientationProvider()->UnlockOrientation();
+ contents()->GetScreenOrientationProviderForTesting()->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