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

Side by Side Diff: chromeos/components/tether/initializer_unittest.cc

Issue 2805833002: Migrate Cryptauth*Managers RegisterPrefs to CryptAuthService::RegisterProfilePrefs. (Closed)
Patch Set: Replace initializer_unittest RegisterPrefs calls with Initializer::RegisterProfilePrefs. Created 3 years, 8 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
« no previous file with comments | « chromeos/components/tether/initializer.cc ('k') | components/cryptauth/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "chromeos/components/tether/initializer.h" 5 #include "chromeos/components/tether/initializer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 protected: 89 protected:
90 InitializerTest() : NetworkStateTest() {} 90 InitializerTest() : NetworkStateTest() {}
91 ~InitializerTest() override {} 91 ~InitializerTest() override {}
92 92
93 void SetUp() override { 93 void SetUp() override {
94 DBusThreadManager::Initialize(); 94 DBusThreadManager::Initialize();
95 NetworkHandler::Initialize(); 95 NetworkHandler::Initialize();
96 NetworkStateTest::SetUp(); 96 NetworkStateTest::SetUp();
97 97
98 test_pref_service_ = base::MakeUnique<TestingPrefServiceSimple>(); 98 test_pref_service_ = base::MakeUnique<TestingPrefServiceSimple>();
99 HostScanDevicePrioritizer::RegisterPrefs(test_pref_service_->registry()); 99 Initializer::RegisterProfilePrefs(test_pref_service_->registry());
100 ActiveHost::RegisterPrefs(test_pref_service_->registry());
101 } 100 }
102 101
103 void TearDown() override { 102 void TearDown() override {
104 ShutdownNetworkState(); 103 ShutdownNetworkState();
105 NetworkStateTest::TearDown(); 104 NetworkStateTest::TearDown();
106 DBusThreadManager::Shutdown(); 105 DBusThreadManager::Shutdown();
107 } 106 }
108 107
109 void InitializeAndDestroy( 108 void InitializeAndDestroy(
110 cryptauth::CryptAuthService* cryptauth_service, 109 cryptauth::CryptAuthService* cryptauth_service,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 InitializeAndDestroy(fake_cryptauth_service.get(), 170 InitializeAndDestroy(fake_cryptauth_service.get(),
172 base::MakeUnique<FakeNotificationPresenter>(), 171 base::MakeUnique<FakeNotificationPresenter>(),
173 test_pref_service_.get(), fake_token_service.get(), 172 test_pref_service_.get(), fake_token_service.get(),
174 network_state_handler(), mock_network_connect.get(), 173 network_state_handler(), mock_network_connect.get(),
175 mock_adapter); 174 mock_adapter);
176 } 175 }
177 176
178 } // namespace tether 177 } // namespace tether
179 178
180 } // namespace chromeos 179 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/components/tether/initializer.cc ('k') | components/cryptauth/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698