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: chrome/browser/services/gcm/fake_gcm_profile_service.h

Issue 183923006: [GCM] API update to allow only a single sender in registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates based on CR. Changing how the senders/reg_ids are stored to avoid upgrade to multiple sedne… Created 6 years, 10 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: 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 1848c0b81beebbf2ade659e692c8d5b997efb464..d291f1cc0efbbedac77af0d00efeabafdaed912c 100644
--- a/chrome/browser/services/gcm/fake_gcm_profile_service.h
+++ b/chrome/browser/services/gcm/fake_gcm_profile_service.h
@@ -25,7 +25,7 @@ class FakeGCMProfileService : public GCMProfileService {
// GCMProfileService overrides.
virtual void Register(const std::string& app_id,
- const std::vector<std::string>& sender_ids,
+ const std::string& sender_id,
const std::string& cert,
RegisterCallback callback) OVERRIDE;
virtual void Send(const std::string& app_id,
@@ -34,7 +34,7 @@ class FakeGCMProfileService : public GCMProfileService {
SendCallback callback) OVERRIDE;
void RegisterFinished(const std::string& app_id,
- const std::vector<std::string>& sender_ids,
+ const std::string& sender_id,
const std::string& cert,
RegisterCallback callback);
@@ -55,8 +55,8 @@ class FakeGCMProfileService : public GCMProfileService {
return last_registered_app_id_;
}
- const std::vector<std::string>& last_registered_sender_ids() const {
- return last_registered_sender_ids_;
+ const std::string& last_registered_sender_id() const {
+ return last_registered_sender_id_;
}
const std::string& last_registered_cert() const {
@@ -72,7 +72,7 @@ class FakeGCMProfileService : public GCMProfileService {
// furter verification in tests.
bool collect_;
std::string last_registered_app_id_;
- std::vector<std::string> last_registered_sender_ids_;
+ std::string last_registered_sender_id_;
std::string last_registered_cert_;
GCMClient::OutgoingMessage last_sent_message_;
std::string last_receiver_id_;

Powered by Google App Engine
This is Rietveld 408576698