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

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: Compile error fix 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..85e633f77366d06b7ed11e5eb67897783d42f31e 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 SetJavaFirstRunPrefsForTesting(const std::string& seed_data,
+ const std::string& seed_signature,
+ const std::string& seed_country,
+ const std::string& response_date,
+ bool is_gzip_compressed);
+
} // namespace android
} // namespace variations

Powered by Google App Engine
This is Rietveld 408576698