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

Unified Diff: components/gcm_driver/instance_id/instance_id_android.h

Issue 1829023002: Add fake for InstanceIDWithSubtype.java, in order to re-use unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid2jni
Patch Set: Tweaks Created 4 years, 8 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/gcm_driver/instance_id/instance_id_android.h
diff --git a/components/gcm_driver/instance_id/instance_id_android.h b/components/gcm_driver/instance_id/instance_id_android.h
index 938c34e4cdfd352a05167c60bff9f295d4dda93f..f0685583c6834f22f6638b99c86ec6f85b0ffbb1 100644
--- a/components/gcm_driver/instance_id/instance_id_android.h
+++ b/components/gcm_driver/instance_id/instance_id_android.h
@@ -27,6 +27,8 @@ class InstanceIDAndroid : public InstanceID {
// Register JNI methods.
static bool RegisterBindings(JNIEnv* env);
+ static void ClearDataAndSetUseFakeForTesting(bool use_fake);
+
InstanceIDAndroid(const std::string& app_id);
~InstanceIDAndroid() override;

Powered by Google App Engine
This is Rietveld 408576698