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

Unified Diff: components/variations/android/variations_seed_bridge.h

Issue 1462953004: Unit tests for importing prefs from the Java side implemented (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes according to code review comments Created 5 years, 1 month 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/variations_seed_bridge.h
diff --git a/components/variations/android/variations_seed_bridge.h b/components/variations/android/variations_seed_bridge.h
index 63ce5e2fcc43be810f963d72522db91f75a0c1e9..a4ad8b865b3f2be45f8d9cc28fae4303b9c6730c 100644
--- a/components/variations/android/variations_seed_bridge.h
+++ b/components/variations/android/variations_seed_bridge.h
@@ -28,6 +28,15 @@ void ClearJavaFirstRunPrefs();
// the Java side.
void MarkVariationsSeedAsStored();
+// Sets test data on the Java side. The data is pulled during the unit tests to
+// C++ side and is being checked for consistency.
+// This method is used for unit testing purposes only.
+void SetTestData(std::string seed_data,
Alexei Svitkine (slow) 2015/11/20 19:10:33 Nit: SetJavaFirstRunPrefsForTesting()
Alexander Agulenko 2015/11/20 19:24:04 Done.
+ std::string seed_signature,
+ std::string seed_country,
+ std::string response_date,
Alexei Svitkine (slow) 2015/11/20 19:10:33 Make params "const std::string&"
Alexander Agulenko 2015/11/20 19:24:04 Done (shame-shame-shame).
+ bool is_gzip_compressed);
+
} // namespace android
} // namespace variations

Powered by Google App Engine
This is Rietveld 408576698