| Index: components/variations/android/junit/src/org/chromium/components/variations/firstrun/VariationsSeedFetcherTest.java
|
| diff --git a/components/variations/android/junit/src/org/chromium/components/variations/firstrun/VariationsSeedFetcherTest.java b/components/variations/android/junit/src/org/chromium/components/variations/firstrun/VariationsSeedFetcherTest.java
|
| index 9c725103ddb9e6a058187904d2b46a9aa073cac0..1835e1ea53347109705da60f0c910198870c1baf 100644
|
| --- a/components/variations/android/junit/src/org/chromium/components/variations/firstrun/VariationsSeedFetcherTest.java
|
| +++ b/components/variations/android/junit/src/org/chromium/components/variations/firstrun/VariationsSeedFetcherTest.java
|
| @@ -24,6 +24,7 @@ import org.junit.After;
|
| import org.junit.Before;
|
| import org.junit.Test;
|
| import org.junit.runner.RunWith;
|
| +import org.robolectric.RuntimeEnvironment;
|
| import org.robolectric.annotation.Config;
|
|
|
| import org.chromium.base.ContextUtils;
|
| @@ -46,6 +47,7 @@ public class VariationsSeedFetcherTest {
|
|
|
| @Before
|
| public void setUp() throws IOException {
|
| + ContextUtils.initApplicationContextForTests(RuntimeEnvironment.application);
|
| // Pretend we are not on the UI thread, since the class we are testing is supposed to run
|
| // only on a background thread.
|
| ThreadUtils.setUiThread(mock(Looper.class));
|
|
|