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

Side by Side Diff: chrome/browser/signin/signin_util_unittest.cc

Issue 2802373002: Add ForceSigninVerifier. (Closed)
Patch Set: rogers' comments Created 3 years, 8 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
« no previous file with comments | « chrome/browser/signin/signin_util.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/signin/signin_util.h" 5 #include "chrome/browser/signin/signin_util.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/prefs/browser_prefs.h" 8 #include "chrome/browser/prefs/browser_prefs.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "chrome/test/base/browser_with_test_window_test.h" 10 #include "chrome/test/base/browser_with_test_window_test.h"
11 #include "chrome/test/base/testing_browser_process.h" 11 #include "chrome/test/base/testing_browser_process.h"
(...skipping 20 matching lines...) Expand all
32 32
33 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin, 33 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin,
34 true); 34 true);
35 ASSERT_TRUE(signin_util::IsForceSigninEnabled()); 35 ASSERT_TRUE(signin_util::IsForceSigninEnabled());
36 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin, 36 g_browser_process->local_state()->SetBoolean(prefs::kForceBrowserSignin,
37 false); 37 false);
38 ASSERT_TRUE(signin_util::IsForceSigninEnabled()); 38 ASSERT_TRUE(signin_util::IsForceSigninEnabled());
39 39
40 TestingBrowserProcess::GetGlobal()->SetLocalState(nullptr); 40 TestingBrowserProcess::GetGlobal()->SetLocalState(nullptr);
41 } 41 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_util.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698