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

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java

Issue 414503004: android: Use hw acceleration in android_webview_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview.test; 5 package org.chromium.android_webview.test;
6 6
7 import android.app.Instrumentation; 7 import android.app.Instrumentation;
8 import android.content.Context; 8 import android.content.Context;
9 import android.test.ActivityInstrumentationTestCase2; 9 import android.test.ActivityInstrumentationTestCase2;
10 import android.util.Log; 10 import android.util.Log;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 267 }
268 268
269 /** 269 /**
270 * Factory class used in creation of test AwContents instances. 270 * Factory class used in creation of test AwContents instances.
271 * 271 *
272 * Test cases can provide subclass instances to the createAwTest* methods in order to create an 272 * Test cases can provide subclass instances to the createAwTest* methods in order to create an
273 * AwContents instance with injected test dependencies. 273 * AwContents instance with injected test dependencies.
274 */ 274 */
275 public static class TestDependencyFactory extends AwContents.DependencyFacto ry { 275 public static class TestDependencyFactory extends AwContents.DependencyFacto ry {
276 public AwTestContainerView createAwTestContainerView(AwTestRunnerActivit y activity) { 276 public AwTestContainerView createAwTestContainerView(AwTestRunnerActivit y activity) {
277 return new AwTestContainerView(activity); 277 return new AwTestContainerView(activity, false);
278 } 278 }
279 public AwSettings createAwSettings(Context context, boolean supportsLega cyQuirks) { 279 public AwSettings createAwSettings(Context context, boolean supportsLega cyQuirks) {
280 return new AwSettings(context, false, supportsLegacyQuirks); 280 return new AwSettings(context, false, supportsLegacyQuirks);
281 } 281 }
282 } 282 }
283 283
284 protected TestDependencyFactory createTestDependencyFactory() { 284 protected TestDependencyFactory createTestDependencyFactory() {
285 return new TestDependencyFactory(); 285 return new TestDependencyFactory();
286 } 286 }
287 287
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 public boolean canZoomOutOnUiThread(final AwContents awContents) throws Exce ption { 478 public boolean canZoomOutOnUiThread(final AwContents awContents) throws Exce ption {
479 return runTestOnUiThreadAndGetResult(new Callable<Boolean>() { 479 return runTestOnUiThreadAndGetResult(new Callable<Boolean>() {
480 @Override 480 @Override
481 public Boolean call() throws Exception { 481 public Boolean call() throws Exception {
482 return awContents.canZoomOut(); 482 return awContents.canZoomOut();
483 } 483 }
484 }); 484 });
485 } 485 }
486 486
487 } 487 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698