namespace gcm {
-GCMClientMock::GCMClientMock(LoadingDelay loading_delay,
- ErrorSimulation error_simulation)
+GCMClientMock::GCMClientMock(LoadingDelay loading_delay)
: delegate_(NULL),
status_(UNINITIALIZED),
loading_delay_(loading_delay),
- error_simulation_(error_simulation),
weak_ptr_factory_(this) {
}
const std::vector<std::string>& sender_ids) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
- std::string registration_id;
- if (error_simulation_ == ALWAYS_SUCCEED)
- registration_id = GetRegistrationIdFromSenderIds(sender_ids);
-
+ std::string registration_id = GetRegistrationIdFromSenderIds(sender_ids);
base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&GCMClientMock::RegisterFinished,
message));
}
+void GCMClientMock::SetRecording(bool recording) {
+}
+
+void GCMClientMock::ClearActivityLogs() {
+}
+
GCMClient::GCMStatistics GCMClientMock::GetStatistics() const {
return GCMClient::GCMStatistics();
}
// static
std::string GCMClientMock::GetRegistrationIdFromSenderIds(
const std::vector<std::string>& sender_ids) {
- // GCMProfileService normalizes the sender IDs by making them sorted.
+ // GCMService normalizes the sender IDs by making them sorted.
std::vector<std::string> normalized_sender_ids = sender_ids;
std::sort(normalized_sender_ids.begin(), normalized_sender_ids.end());