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

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/ContentViewTestBase.java

Issue 12047068: Add apk for running content_browsertests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 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 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.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.util.Log; 7 import android.util.Log;
8 8
9 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; 9 import org.chromium.content.browser.test.util.TestCallbackHelperContainer;
10 import org.chromium.content_shell.ContentShellActivity;
11 import org.chromium.content_shell.ContentShellTestBase; 10 import org.chromium.content_shell.ContentShellTestBase;
11 import org.chromium.content_shell_apk.ContentShellActivity;
12 12
13 public class ContentViewTestBase extends ContentShellTestBase { 13 public class ContentViewTestBase extends ContentShellTestBase {
14 14
15 protected TestCallbackHelperContainer mTestCallbackHelperContainer; 15 protected TestCallbackHelperContainer mTestCallbackHelperContainer;
16 16
17 /** 17 /**
18 * Sets up the ContentView and injects the supplied object. Intended to be c alled from setUp(). 18 * Sets up the ContentView and injects the supplied object. Intended to be c alled from setUp().
19 */ 19 */
20 protected void setUpContentView(final Object object, final String name) thro ws Exception { 20 protected void setUpContentView(final Object object, final String name) thro ws Exception {
21 // This starts the activity, so must be called on the test thread. 21 // This starts the activity, so must be called on the test thread.
(...skipping 27 matching lines...) Expand all
49 /** 49 /**
50 * Loads data on the UI thread and blocks until onPageFinished is called. 50 * Loads data on the UI thread and blocks until onPageFinished is called.
51 * TODO(cramya): Move method to a separate util file once UiUtils.java moves into base. 51 * TODO(cramya): Move method to a separate util file once UiUtils.java moves into base.
52 */ 52 */
53 protected void loadDataSync(final ContentView contentView, final String data , 53 protected void loadDataSync(final ContentView contentView, final String data ,
54 final String mimeType, final boolean isBase64Encoded) throws Throwab le { 54 final String mimeType, final boolean isBase64Encoded) throws Throwab le {
55 loadUrl(contentView, mTestCallbackHelperContainer, LoadUrlParams.createL oadDataParams( 55 loadUrl(contentView, mTestCallbackHelperContainer, LoadUrlParams.createL oadDataParams(
56 data, mimeType, isBase64Encoded)); 56 data, mimeType, isBase64Encoded));
57 } 57 }
58 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698