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

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

Issue 12880022: [android_webview] Rename AndroidWebView* -> Aw*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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.content.BroadcastReceiver; 7 import android.content.BroadcastReceiver;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.IntentFilter; 10 import android.content.IntentFilter;
(...skipping 13 matching lines...) Expand all
24 import org.chromium.content.browser.ContentViewStatics; 24 import org.chromium.content.browser.ContentViewStatics;
25 import org.chromium.net.ProxyChangeListener; 25 import org.chromium.net.ProxyChangeListener;
26 26
27 import java.util.concurrent.atomic.AtomicBoolean; 27 import java.util.concurrent.atomic.AtomicBoolean;
28 import java.util.concurrent.atomic.AtomicReference; 28 import java.util.concurrent.atomic.AtomicReference;
29 import java.util.concurrent.Callable; 29 import java.util.concurrent.Callable;
30 30
31 /** 31 /**
32 * Tests for ContentView methods that don't fall into any other category. 32 * Tests for ContentView methods that don't fall into any other category.
33 */ 33 */
34 public class ContentViewMiscTest extends AndroidWebViewTestBase { 34 public class ContentViewMiscTest extends AwTestBase {
35 35
36 private TestAwContentsClient mContentsClient; 36 private TestAwContentsClient mContentsClient;
37 private AwContents mAwContents; 37 private AwContents mAwContents;
38 private ContentViewCore mContentViewCore; 38 private ContentViewCore mContentViewCore;
39 39
40 @Override 40 @Override
41 public void setUp() throws Exception { 41 public void setUp() throws Exception {
42 super.setUp(); 42 super.setUp();
43 mContentsClient = new TestAwContentsClient(); 43 mContentsClient = new TestAwContentsClient();
44 final AwTestContainerView testContainerView = 44 final AwTestContainerView testContainerView =
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 int backgroundColor = ThreadUtils.runOnUiThreadBlocking(new Callable<Int eger>() { 131 int backgroundColor = ThreadUtils.runOnUiThreadBlocking(new Callable<Int eger>() {
132 @Override 132 @Override
133 public Integer call() { 133 public Integer call() {
134 Bitmap map = mContentViewCore.getBitmap(1, 1); 134 Bitmap map = mContentViewCore.getBitmap(1, 1);
135 return map.getPixel(0,0); 135 return map.getPixel(0,0);
136 } 136 }
137 }); 137 });
138 assertEquals(Color.MAGENTA, backgroundColor); 138 assertEquals(Color.MAGENTA, backgroundColor);
139 } 139 }
140 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698