| Index: components/cronet/android/test/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java
|
| diff --git a/components/cronet/android/test/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java b/components/cronet/android/test/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java
|
| index f9f9782949b51dbc378d15b941468f8eac41a1a6..0e0737dc6155b82a9182fa4bd30aa0110d57ce83 100644
|
| --- a/components/cronet/android/test/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java
|
| +++ b/components/cronet/android/test/javatests/src/org/chromium/net/NetworkChangeNotifierTest.java
|
| @@ -20,8 +20,11 @@ public class NetworkChangeNotifierTest extends CronetTestBase {
|
| @SmallTest
|
| @Feature({"Cronet"})
|
| public void testNetworkChangeNotifierIsInitialized() throws Exception {
|
| - CronetTestActivity activity = launchCronetTestApp();
|
| - assertNotNull(activity);
|
| + CronetTestFramework testFramework = startCronetTestFramework();
|
| + assertNotNull(testFramework);
|
| + // Let Cronet UI thread initialization complete so
|
| + // NetworkChangeNotifier is initialized for the test.
|
| + NetworkChangeNotifierTestUtil.flushUiThreadTaskQueue();
|
| assertTrue(NetworkChangeNotifierUtil.isTestIPAddressObserverCalled());
|
| }
|
| }
|
|
|