| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "google_apis/gcm/engine/user_list.h" | 5 #include "google_apis/gcm/engine/user_list.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const GCMClient::IncomingMessage& message) | 41 const GCMClient::IncomingMessage& message) |
| 42 OVERRIDE {} | 42 OVERRIDE {} |
| 43 virtual void OnMessagesDeleted(const std::string& app_id) OVERRIDE {} | 43 virtual void OnMessagesDeleted(const std::string& app_id) OVERRIDE {} |
| 44 virtual void OnMessageSendError(const std::string& app_id, | 44 virtual void OnMessageSendError(const std::string& app_id, |
| 45 const std::string& message_id, | 45 const std::string& message_id, |
| 46 GCMClient::Result result) OVERRIDE {} | 46 GCMClient::Result result) OVERRIDE {} |
| 47 virtual GCMClient::CheckinInfo GetCheckinInfo() const OVERRIDE { | 47 virtual GCMClient::CheckinInfo GetCheckinInfo() const OVERRIDE { |
| 48 return GCMClient::CheckinInfo(); | 48 return GCMClient::CheckinInfo(); |
| 49 } | 49 } |
| 50 virtual void OnLoadingCompleted() OVERRIDE {} | 50 virtual void OnLoadingCompleted() OVERRIDE {} |
| 51 virtual base::TaskRunner* GetFileTaskRunner() OVERRIDE { return NULL; } | |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 std::string username_; | 53 std::string username_; |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace | 56 } // namespace |
| 58 | 57 |
| 59 class UserListTest : public testing::Test { | 58 class UserListTest : public testing::Test { |
| 60 public: | 59 public: |
| 61 UserListTest(); | 60 UserListTest(); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // callbacks to be run. | 360 // callbacks to be run. |
| 362 PumpLoop(); | 361 PumpLoop(); |
| 363 PumpLoop(); | 362 PumpLoop(); |
| 364 | 363 |
| 365 EXPECT_EQ(last_assigned_serial_number_, | 364 EXPECT_EQ(last_assigned_serial_number_, |
| 366 user_list->GetSerialNumberForUsername(delegate->GetUsername())); | 365 user_list->GetSerialNumberForUsername(delegate->GetUsername())); |
| 367 EXPECT_EQ(delegate->GetUsername(), last_assigned_username_); | 366 EXPECT_EQ(delegate->GetUsername(), last_assigned_username_); |
| 368 } | 367 } |
| 369 | 368 |
| 370 } // namespace gcm | 369 } // namespace gcm |
| OLD | NEW |