| 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..b95c8ad29db8847702a7491d4635eafb8455e6fe 100644
|
| --- a/net/android/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java
|
| +++ b/net/android/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java
|
| @@ -163,14 +163,14 @@ public class NetworkChangeNotifierTest extends InstrumentationTestCase {
|
|
|
| observer.resetHasReceivedNotification();
|
| // Pretend we got moved to the background.
|
| - receiver.onActivityStateChange(ActivityStatus.PAUSED);
|
| + receiver.onApplicationStateChange(ActivityStatus.APP_PAUSED);
|
| // 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(ActivityStatus.APP_RUNNING);
|
| assertTrue(observer.hasReceivedNotification());
|
| }
|
| }
|
|
|