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

Side by Side Diff: components/password_manager/core/browser/password_bubble_experiment_unittest.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698