Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: components/variations/android/junit/src/org/chromium/components/variations/firstrun/VariationsSeedFetcherTest.java

Issue 2970993002: Add AwVariationsSeedFetcher and refactory VariationsSeedFetcher (Closed)
Patch Set: Update unittest Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698