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

Side by Side Diff: chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/sync/test/integration/password_manager_setting_migrator _helper.h" 5 #include "chrome/browser/sync/test/integration/password_manager_setting_migrator _helper.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h" 9 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/sync/profile_sync_service_factory.h" 11 #include "chrome/browser/sync/profile_sync_service_factory.h"
12 #include "chrome/browser/sync/test/integration/preferences_helper.h" 12 #include "chrome/browser/sync/test/integration/preferences_helper.h"
13 #include "components/browser_sync/browser/profile_sync_service.h" 13 #include "components/browser_sync/profile_sync_service.h"
14 #include "components/password_manager/core/browser/password_manager_settings_mig ration_experiment.h" 14 #include "components/password_manager/core/browser/password_manager_settings_mig ration_experiment.h"
15 #include "components/password_manager/core/common/password_manager_pref_names.h" 15 #include "components/password_manager/core/common/password_manager_pref_names.h"
16 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h" 16 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h"
17 #include "components/prefs/pref_service.h" 17 #include "components/prefs/pref_service.h"
18 #include "content/public/browser/notification_details.h" 18 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
20 #include "content/public/browser/notification_source.h" 20 #include "content/public/browser/notification_source.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 using preferences_helper::GetPrefs; 23 using preferences_helper::GetPrefs;
(...skipping 26 matching lines...) Expand all
50 bool old_pref_value) { 50 bool old_pref_value) {
51 using password_manager::prefs::kCredentialsEnableService; 51 using password_manager::prefs::kCredentialsEnableService;
52 using password_manager::prefs::kPasswordManagerSavingEnabled; 52 using password_manager::prefs::kPasswordManagerSavingEnabled;
53 EXPECT_EQ(new_pref_value, 53 EXPECT_EQ(new_pref_value,
54 GetPrefs(index)->GetBoolean(kCredentialsEnableService)); 54 GetPrefs(index)->GetBoolean(kCredentialsEnableService));
55 EXPECT_EQ(old_pref_value, 55 EXPECT_EQ(old_pref_value,
56 GetPrefs(index)->GetBoolean(kPasswordManagerSavingEnabled)); 56 GetPrefs(index)->GetBoolean(kPasswordManagerSavingEnabled));
57 } 57 }
58 58
59 } // namespace password_manager_setting_migrater_helper 59 } // namespace password_manager_setting_migrater_helper
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/p2p_sync_refresher.cc ('k') | chrome/browser/sync/test/integration/passwords_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698