| 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 "chrome/browser/services/gcm/fake_gcm_app_handler.h" | 5 #include "components/gcm_driver/fake_gcm_app_handler.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 | 8 |
| 9 namespace gcm { | 9 namespace gcm { |
| 10 | 10 |
| 11 FakeGCMAppHandler::FakeGCMAppHandler() : received_event_(NO_EVENT) { | 11 FakeGCMAppHandler::FakeGCMAppHandler() : received_event_(NO_EVENT) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 FakeGCMAppHandler::~FakeGCMAppHandler() { | 14 FakeGCMAppHandler::~FakeGCMAppHandler() { |
| 15 } | 15 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 void FakeGCMAppHandler::ClearResults() { | 55 void FakeGCMAppHandler::ClearResults() { |
| 56 received_event_ = NO_EVENT; | 56 received_event_ = NO_EVENT; |
| 57 app_id_.clear(); | 57 app_id_.clear(); |
| 58 message_ = GCMClient::IncomingMessage(); | 58 message_ = GCMClient::IncomingMessage(); |
| 59 send_error_details_ = GCMClient::SendErrorDetails(); | 59 send_error_details_ = GCMClient::SendErrorDetails(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace gcm | 62 } // namespace gcm |
| OLD | NEW |