OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.h" | 5 #include "components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/prefs/testing_pref_service.h" | 8 #include "base/prefs/testing_pref_service.h" |
8 #include "components/gcm_driver/fake_gcm_driver.h" | 9 #include "components/gcm_driver/fake_gcm_driver.h" |
9 #include "components/gcm_driver/gcm_client.h" | 10 #include "components/gcm_driver/gcm_client.h" |
10 #include "components/proximity_auth/cryptauth/pref_names.h" | 11 #include "components/proximity_auth/cryptauth/pref_names.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 using ::testing::_; | 15 using ::testing::_; |
15 using ::testing::SaveArg; | 16 using ::testing::SaveArg; |
16 | 17 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 message.collapse_key = kCryptAuthMessageCollapseKey; | 189 message.collapse_key = kCryptAuthMessageCollapseKey; |
189 message.sender_id = kCryptAuthGCMSenderId; | 190 message.sender_id = kCryptAuthGCMSenderId; |
190 | 191 |
191 gcm::GCMAppHandler* gcm_app_handler = | 192 gcm::GCMAppHandler* gcm_app_handler = |
192 static_cast<gcm::GCMAppHandler*>(&gcm_manager_); | 193 static_cast<gcm::GCMAppHandler*>(&gcm_manager_); |
193 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message); | 194 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message); |
194 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message); | 195 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message); |
195 } | 196 } |
196 | 197 |
197 } // namespace proximity_auth | 198 } // namespace proximity_auth |
OLD | NEW |