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

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

Issue 687803009: aw: Add test to ensure hardware mode works (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blank line Created 6 years, 1 month 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
« no previous file with comments | « no previous file | android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
index 73ba3be4be3f4e94cc478ba5d19aacb04036a880..791dcbdf491668a95428ac523bb46d35e6de2ee4 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
@@ -500,4 +500,15 @@ public class AwContentsTest extends AwTestBase {
}
}
+ // This is a meta test that we don't accidentally turn of hardware
+ // acceleration in instrumentation tests without notice. Do not add the
+ // @DisableHardwareAccelerationForTest annotation for this test.
+ @Feature({"AndroidWebView"})
+ @SmallTest
+ public void testHardwareModeWorks() throws Throwable {
+ AwTestContainerView testContainer =
+ createAwTestContainerViewOnMainSync(mContentsClient);
+ assertTrue(testContainer.isHardwareAccelerated());
+ assertTrue(testContainer.isBackedByHardwareView());
+ }
}
« no previous file with comments | « no previous file | android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698