Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Side by Side Diff: components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl_unittest.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/macros.h"
8 #include "base/prefs/testing_pref_service.h"
9 #include "components/gcm_driver/fake_gcm_driver.h" 8 #include "components/gcm_driver/fake_gcm_driver.h"
10 #include "components/gcm_driver/gcm_client.h" 9 #include "components/gcm_driver/gcm_client.h"
10 #include "components/prefs/testing_pref_service.h"
11 #include "components/proximity_auth/cryptauth/pref_names.h" 11 #include "components/proximity_auth/cryptauth/pref_names.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using ::testing::_; 15 using ::testing::_;
16 using ::testing::SaveArg; 16 using ::testing::SaveArg;
17 17
18 namespace proximity_auth { 18 namespace proximity_auth {
19 19
20 namespace { 20 namespace {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 message.collapse_key = kCryptAuthMessageCollapseKey; 189 message.collapse_key = kCryptAuthMessageCollapseKey;
190 message.sender_id = kCryptAuthGCMSenderId; 190 message.sender_id = kCryptAuthGCMSenderId;
191 191
192 gcm::GCMAppHandler* gcm_app_handler = 192 gcm::GCMAppHandler* gcm_app_handler =
193 static_cast<gcm::GCMAppHandler*>(&gcm_manager_); 193 static_cast<gcm::GCMAppHandler*>(&gcm_manager_);
194 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message); 194 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message);
195 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message); 195 gcm_app_handler->OnMessage(kCryptAuthGCMAppId, message);
196 } 196 }
197 197
198 } // namespace proximity_auth 198 } // namespace proximity_auth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698