Index: net/android/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java |
diff --git a/net/android/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java b/net/android/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java |
index 01c05b8fd677452892f62539b0112b228afe6ac1..887bc3bb9fe9150fc28e85132afa386120e8721a 100644 |
--- a/net/android/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java |
+++ b/net/android/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java |
@@ -12,7 +12,7 @@ import android.test.InstrumentationTestCase; |
import android.test.UiThreadTest; |
import android.test.suitebuilder.annotation.MediumTest; |
-import org.chromium.base.ActivityStatus; |
+import org.chromium.base.ApplicationState; |
import org.chromium.base.test.util.Feature; |
/** |
@@ -163,14 +163,14 @@ public class NetworkChangeNotifierTest extends InstrumentationTestCase { |
observer.resetHasReceivedNotification(); |
// Pretend we got moved to the background. |
- receiver.onActivityStateChange(ActivityStatus.PAUSED); |
+ receiver.onApplicationStateChange(ApplicationState.HAS_PAUSED_ACTIVITIES); |
// Change the state. |
connectivityDelegate.setActiveNetworkExists(true); |
connectivityDelegate.setNetworkType(NetworkChangeNotifier.CONNECTION_WIFI); |
// The NetworkChangeNotifierAutoDetect doesn't receive any notification while we are in the |
// background, but when we get back to the foreground the state changed should be detected |
// and a notification sent. |
- receiver.onActivityStateChange(ActivityStatus.RESUMED); |
+ receiver.onApplicationStateChange(ApplicationState.HAS_RUNNING_ACTIVITIES); |
assertTrue(observer.hasReceivedNotification()); |
} |
} |