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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/LocationProviderTest.java

Issue 141533006: [Android] Move the java content/ package to content_public/ to start the split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small fixes and findbugs line update Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/javatests/src/org/chromium/content/browser/LocationProviderTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/LocationProviderTest.java b/content/public/android/javatests/src/org/chromium/content/browser/LocationProviderTest.java
deleted file mode 100644
index 297d5f3271c8a93cd1ff38dba29e7b990d0abf4c..0000000000000000000000000000000000000000
--- a/content/public/android/javatests/src/org/chromium/content/browser/LocationProviderTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser;
-
-import android.app.Activity;
-import android.test.InstrumentationTestCase;
-import android.test.UiThreadTest;
-import android.test.suitebuilder.annotation.SmallTest;
-
-import org.chromium.base.test.util.Feature;
-
-/**
- * Test suite for LocationProvider.
- */
-public class LocationProviderTest extends InstrumentationTestCase {
- private Activity mActivity;
- private LocationProviderAdapter mLocationProvider;
-
- @Override
- public void setUp() {
- mActivity = new Activity();
- mLocationProvider =
- LocationProviderAdapter.create(getInstrumentation().getTargetContext());
- }
-
- /**
- * Verify a normal start/stop call pair without any activity pauses.
- */
- @SmallTest
- @UiThreadTest
- @Feature({"Location"})
- public void testStartStop() throws Exception {
- mLocationProvider.start(false);
- assertTrue("Should be running", mLocationProvider.isRunning());
- mLocationProvider.stop();
- assertFalse("Should have stopped", mLocationProvider.isRunning());
- }
-
- /**
- * Verify a start/upgrade/stop call sequence without any activity pauses.
- */
- @SmallTest
- @UiThreadTest
- @Feature({"Location"})
- public void testStartUpgradeStop() throws Exception {
- mLocationProvider.start(false);
- assertTrue("Should be running", mLocationProvider.isRunning());
- mLocationProvider.start(true);
- assertTrue("Should be running", mLocationProvider.isRunning());
- mLocationProvider.stop();
- assertFalse("Should have stopped", mLocationProvider.isRunning());
- }
-}

Powered by Google App Engine
This is Rietveld 408576698