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

Side by Side Diff: content/shell/android/javatests/src/org/chromium/content_shell/ContentShellUrlTest.java

Issue 10974012: Move base Java utils to base/test/android/javatests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved util packaged to test subpackage. addded OWNERS Created 8 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 (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_shell; 5 package org.chromium.content_shell;
6 6
7 import android.app.Activity;
8 import android.test.ActivityInstrumentationTestCase2;
9 import android.test.suitebuilder.annotation.SmallTest; 7 import android.test.suitebuilder.annotation.SmallTest;
10 8
11 import org.chromium.base.test.Feature; 9 import org.chromium.base.test.util.Feature;
12 10
13 /** 11 /**
14 * Example test that just starts the content shell. 12 * Example test that just starts the content shell.
15 */ 13 */
16 public class ContentShellUrlTest extends ContentShellTestBase { 14 public class ContentShellUrlTest extends ContentShellTestBase {
17 // URL used for base tests. 15 // URL used for base tests.
18 private static final String URL = "data:text"; 16 private static final String URL = "data:text";
19 17
20 @SmallTest 18 @SmallTest
21 @Feature({"Main"}) 19 @Feature({"Main"})
22 public void testBaseStartup() throws Exception { 20 public void testBaseStartup() throws Exception {
23 ContentShellActivity activity = launchContentShellWithUrl(URL); 21 ContentShellActivity activity = launchContentShellWithUrl(URL);
24 22
25 // Make sure the activity was created as expected. 23 // Make sure the activity was created as expected.
26 assertNotNull(activity); 24 assertNotNull(activity);
27 25
28 // Make sure that the URL is set as expected. 26 // Make sure that the URL is set as expected.
29 assertEquals(URL, activity.getActiveShell().getContentView().getUrl()); 27 assertEquals(URL, activity.getActiveShell().getContentView().getUrl());
30 } 28 }
31 } 29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698