Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / components / gcm_driver / fake_gcm_client.cc
index 6a5639c..91d0ecb 100644 (file)
@@ -11,6 +11,7 @@
 #include "base/sys_byteorder.h"
 #include "base/time/time.h"
 #include "google_apis/gcm/base/encryptor.h"
+#include "google_apis/gcm/engine/account_mapping.h"
 #include "net/base/ip_endpoint.h"
 
 namespace gcm {
@@ -119,6 +120,13 @@ void FakeGCMClient::SetAccountsForCheckin(
     const std::map<std::string, std::string>& account_tokens) {
 }
 
+void FakeGCMClient::UpdateAccountMapping(
+    const AccountMapping& account_mapping) {
+}
+
+void FakeGCMClient::RemoveAccountMapping(const std::string& account_id) {
+}
+
 void FakeGCMClient::PerformDelayedLoading() {
   DCHECK(ui_thread_->RunsTasksOnCurrentThread());
 
@@ -172,7 +180,7 @@ std::string FakeGCMClient::GetRegistrationIdFromSenderIds(
 }
 
 void FakeGCMClient::CheckinFinished() {
-  delegate_->OnGCMReady();
+  delegate_->OnGCMReady(std::vector<AccountMapping>());
   delegate_->OnConnected(net::IPEndPoint());
 }