Index: components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc |
diff --git a/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc b/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc |
index 698329da207ca18cc37c64658ac6b33206ecac5a..15f3340e52d155709cd367c8af748050222c0857 100644 |
--- a/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc |
+++ b/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc |
@@ -78,6 +78,16 @@ void FakeGCMDriverForInstanceID::GetToken( |
FROM_HERE, base::Bind(callback, token, gcm::GCMClient::SUCCESS)); |
} |
+void FakeGCMDriverForInstanceID::ValidateToken( |
+ const std::string& app_id, |
+ const std::string& authorized_entity, |
+ const std::string& scope, |
+ const std::string& token, |
+ const ValidateTokenCallback& callback) { |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, base::Bind(callback, true /* is_valid */)); |
+} |
+ |
void FakeGCMDriverForInstanceID::DeleteToken( |
const std::string& app_id, |
const std::string& authorized_entity, |