Chromium Code Reviews| 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 5415c9fa1d9d7040a185673c17a57aff8fd07f8f..a4a426e67643a0206f172dddea7ee30e18579fa7 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 |
| @@ -53,7 +53,11 @@ public class VariationsSeedFetcherTest { |
| ThreadUtils.setUiThread(mock(Looper.class)); |
| mFetcher = spy(VariationsSeedFetcher.get()); |
| mConnection = mock(HttpURLConnection.class); |
| - doReturn(mConnection).when(mFetcher).getServerConnection(""); |
| + doReturn(mConnection) |
| + .when(mFetcher) |
| + .getServerConnection(VariationsSeedFetcher.VARIATIONS_SERVER_URL |
| + + VariationsSeedFetcher.VARIATIONS_PLATFORM, |
|
Alexei Svitkine (slow)
2017/07/06 22:01:10
It's not great to leak the details of how to const
|
| + ""); |
| mPrefs = ContextUtils.getAppSharedPreferences(); |
| mPrefs.edit().clear().apply(); |
| } |