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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_test_helper.h

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Rebased. Created 5 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void SetUp() override; 163 void SetUp() override;
164 void TearDown() override; 164 void TearDown() override;
165 165
166 // Flushes any pending device settings operations. 166 // Flushes any pending device settings operations.
167 void FlushDeviceSettings(); 167 void FlushDeviceSettings();
168 168
169 // Triggers an owner key and device settings reload on 169 // Triggers an owner key and device settings reload on
170 // |device_settings_service_| and flushes the resulting load operation. 170 // |device_settings_service_| and flushes the resulting load operation.
171 void ReloadDeviceSettings(); 171 void ReloadDeviceSettings();
172 172
173 void InitOwner(const std::string& user_id, bool tpm_is_ready); 173 void InitOwner(const AccountId& user_id, bool tpm_is_ready);
achuithb 2015/10/23 00:08:51 account_id
Alexander Alekseev 2015/10/23 09:11:23 Done.
174 174
175 content::TestBrowserThreadBundle thread_bundle_; 175 content::TestBrowserThreadBundle thread_bundle_;
176 176
177 policy::DevicePolicyBuilder device_policy_; 177 policy::DevicePolicyBuilder device_policy_;
178 178
179 DeviceSettingsTestHelper device_settings_test_helper_; 179 DeviceSettingsTestHelper device_settings_test_helper_;
180 // Note that FakeUserManager is used by ProfileHelper, which some of the 180 // Note that FakeUserManager is used by ProfileHelper, which some of the
181 // tested classes depend on implicitly. 181 // tested classes depend on implicitly.
182 FakeChromeUserManager* user_manager_; 182 FakeChromeUserManager* user_manager_;
183 ScopedUserManagerEnabler user_manager_enabler_; 183 ScopedUserManagerEnabler user_manager_enabler_;
184 scoped_refptr<ownership::MockOwnerKeyUtil> owner_key_util_; 184 scoped_refptr<ownership::MockOwnerKeyUtil> owner_key_util_;
185 // Local DeviceSettingsService instance for tests. Avoid using in combination 185 // Local DeviceSettingsService instance for tests. Avoid using in combination
186 // with the global instance (DeviceSettingsService::Get()). 186 // with the global instance (DeviceSettingsService::Get()).
187 DeviceSettingsService device_settings_service_; 187 DeviceSettingsService device_settings_service_;
188 scoped_ptr<TestingProfile> profile_; 188 scoped_ptr<TestingProfile> profile_;
189 189
190 scoped_ptr<DBusThreadManagerSetter> dbus_setter_; 190 scoped_ptr<DBusThreadManagerSetter> dbus_setter_;
191 191
192 private: 192 private:
193 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); 193 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase);
194 }; 194 };
195 195
196 } // namespace chromeos 196 } // namespace chromeos
197 197
198 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 198 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698