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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java

Issue 213123011: Make DeviceDisplayInfo a Singleton and have ScreenOrientationListener update it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java
index 3ada155c7f510ca20844689492b6f45d76fad46e..2be57a526cb3040761218abb00821f3cb02d7295 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java
@@ -308,7 +308,7 @@ public class AndroidViewIntegrationTest extends AwTestBase {
assertZeroHeight(testContainerView);
final double deviceDIPScale =
- DeviceDisplayInfo.create(testContainerView.getContext()).getDIPScale();
+ DeviceDisplayInfo.getInstance(testContainerView.getContext()).getDIPScale();
final int contentWidthCss = 142;
final int contentHeightCss = 180;
@@ -336,7 +336,7 @@ public class AndroidViewIntegrationTest extends AwTestBase {
assertZeroHeight(testContainerView);
final double deviceDIPScale =
- DeviceDisplayInfo.create(testContainerView.getContext()).getDIPScale();
+ DeviceDisplayInfo.getInstance(testContainerView.getContext()).getDIPScale();
final int contentWidthCss = 142;
final int contentHeightCss = 180;
@@ -365,7 +365,7 @@ public class AndroidViewIntegrationTest extends AwTestBase {
final AwContents awContents = testContainerView.getAwContents();
final double deviceDIPScale =
- DeviceDisplayInfo.create(testContainerView.getContext()).getDIPScale();
+ DeviceDisplayInfo.getInstance(testContainerView.getContext()).getDIPScale();
final int physicalWidth = 600;
final int spanWidth = 42;
final int expectedWidthCss =

Powered by Google App Engine
This is Rietveld 408576698