| 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_bubble_experiment.h" | 5 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
| 10 #include "base/prefs/pref_registry_simple.h" | |
| 11 #include "base/prefs/pref_service.h" | |
| 12 #include "base/prefs/testing_pref_service.h" | |
| 13 #include "components/password_manager/core/common/password_manager_pref_names.h" | 10 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 11 #include "components/prefs/pref_registry_simple.h" |
| 12 #include "components/prefs/pref_service.h" |
| 13 #include "components/prefs/testing_pref_service.h" |
| 14 #include "components/sync_driver/fake_sync_service.h" | 14 #include "components/sync_driver/fake_sync_service.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 namespace password_bubble_experiment { | 18 namespace password_bubble_experiment { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const char kSmartLockNoBrandingGroupName[] = "NoSmartLockBranding"; | 22 const char kSmartLockNoBrandingGroupName[] = "NoSmartLockBranding"; |
| 23 | 23 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 EXPECT_EQ( | 303 EXPECT_EQ( |
| 304 test_case.result_pref_value, | 304 test_case.result_pref_value, |
| 305 prefs()->GetBoolean( | 305 prefs()->GetBoolean( |
| 306 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown)); | 306 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown)); |
| 307 EXPECT_EQ(!test_case.result_pref_value, | 307 EXPECT_EQ(!test_case.result_pref_value, |
| 308 ShouldShowAutoSignInPromptFirstRunExperience(prefs())); | 308 ShouldShowAutoSignInPromptFirstRunExperience(prefs())); |
| 309 } | 309 } |
| 310 } | 310 } |
| 311 | 311 |
| 312 } // namespace password_bubble_experiment | 312 } // namespace password_bubble_experiment |
| OLD | NEW |