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

Unified Diff: chrome/browser/services/gcm/fake_gcm_profile_service.h

Issue 785983002: Have FakeGCMProfileService return different registration IDs each time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: chrome/browser/services/gcm/fake_gcm_profile_service.h
diff --git a/chrome/browser/services/gcm/fake_gcm_profile_service.h b/chrome/browser/services/gcm/fake_gcm_profile_service.h
index fe2ffd8cbf6bc1b9a5caf19da9070c79a2c6b707..58ba184ceefdb073f4d396b2f84b4c07dda2a9f8 100644
--- a/chrome/browser/services/gcm/fake_gcm_profile_service.h
+++ b/chrome/browser/services/gcm/fake_gcm_profile_service.h
@@ -64,6 +64,9 @@ class FakeGCMProfileService : public GCMProfileService {
// Indicates whether the service will collect paramters of the calls for
// furter verification in tests.
bool collect_;
+ // Used to give each registration a unique registration id. Does not decrease
+ // when unregister is called.
+ int registration_count_;
std::string last_registered_app_id_;
std::vector<std::string> last_registered_sender_ids_;
std::list<GCMClient::Result> unregister_responses_;

Powered by Google App Engine
This is Rietveld 408576698