OLD | NEW |
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 Loading... |
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 |
OLD | NEW |