| 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 "base/macros.h" |
| 5 #include "base/prefs/pref_service.h" | 6 #include "base/prefs/pref_service.h" |
| 6 #include "chrome/browser/sync/test/integration/password_manager_setting_migrator
_helper.h" | 7 #include "chrome/browser/sync/test/integration/password_manager_setting_migrator
_helper.h" |
| 7 #include "chrome/browser/sync/test/integration/preferences_helper.h" | 8 #include "chrome/browser/sync/test/integration/preferences_helper.h" |
| 8 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 9 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 9 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 10 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
| 10 #include "chrome/browser/sync/test/integration/sync_test.h" | 11 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 11 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 12 #include "components/password_manager/core/common/password_manager_pref_names.h" | 13 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 13 #include "components/syncable_prefs/pref_service_syncable.h" | 14 #include "components/syncable_prefs/pref_service_syncable.h" |
| 14 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 112 |
| 112 IN_PROC_BROWSER_TEST_F( | 113 IN_PROC_BROWSER_TEST_F( |
| 113 TwoClientsPasswordManagerSettingMigratorServiceSyncTest, | 114 TwoClientsPasswordManagerSettingMigratorServiceSyncTest, |
| 114 ChangeNewPrefOnNonMigratedClientOneClientsWithMigration) { | 115 ChangeNewPrefOnNonMigratedClientOneClientsWithMigration) { |
| 115 ASSERT_TRUE(SetupSync()); | 116 ASSERT_TRUE(SetupSync()); |
| 116 EnsureMigrationStartsForClient(0); | 117 EnsureMigrationStartsForClient(0); |
| 117 TestPrefChangeOnClient(1, kCredentialsEnableService); | 118 TestPrefChangeOnClient(1, kCredentialsEnableService); |
| 118 ASSERT_TRUE(AwaitBooleanPrefMatches(kPasswordManagerSavingEnabled)); | 119 ASSERT_TRUE(AwaitBooleanPrefMatches(kPasswordManagerSavingEnabled)); |
| 119 ExpectValueOnBothClientsForBothPreference(false); | 120 ExpectValueOnBothClientsForBothPreference(false); |
| 120 } | 121 } |
| OLD | NEW |