| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/password_manager/core/browser/password_manager_settings_mig
ration_experiment.h" | 5 #include "components/password_manager/core/browser/password_manager_settings_mig
ration_experiment.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 11 |
| 11 namespace { | 12 namespace { |
| 12 | 13 |
| 13 const char kPasswordManagerSettingMigrationFieldTrialName[] = | 14 const char kPasswordManagerSettingMigrationFieldTrialName[] = |
| 14 "PasswordManagerSettingsMigration"; | 15 "PasswordManagerSettingsMigration"; |
| 15 const char kEnabledPasswordManagerSettingsMigrationGroupName[] = "Enable"; | 16 const char kEnabledPasswordManagerSettingsMigrationGroupName[] = "Enable"; |
| 16 const char kDisablePasswordManagerSettingsMigrationGroupName[] = "Disable"; | 17 const char kDisablePasswordManagerSettingsMigrationGroupName[] = "Disable"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 69 } |
| 69 | 70 |
| 70 TEST_F(PasswordManagerSettingsMigrationExperimentTest, | 71 TEST_F(PasswordManagerSettingsMigrationExperimentTest, |
| 71 IsBehaviourChangeDisabled) { | 72 IsBehaviourChangeDisabled) { |
| 72 EnforcePasswordManagerSettingsBehaviourChangeExperimentGroup( | 73 EnforcePasswordManagerSettingsBehaviourChangeExperimentGroup( |
| 73 kPasswordManagerSettingsBehaviourChangeDisabledGroupName); | 74 kPasswordManagerSettingsBehaviourChangeDisabledGroupName); |
| 74 EXPECT_FALSE(IsSettingsBehaviorChangeActive()); | 75 EXPECT_FALSE(IsSettingsBehaviorChangeActive()); |
| 75 } | 76 } |
| 76 | 77 |
| 77 } // namespace password_manager | 78 } // namespace password_manager |
| OLD | NEW |