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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_helper_unittest.cc

Issue 13871009: Move signin_manager_fake.* to fake_signin_manager.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to TOT Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/prefs/pref_service.h" 5 #include "base/prefs/pref_service.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/content_settings/cookie_settings.h" 8 #include "chrome/browser/content_settings/cookie_settings.h"
9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
10 #include "chrome/browser/prefs/scoped_user_pref_update.h" 10 #include "chrome/browser/prefs/scoped_user_pref_update.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/profiles/profile_info_cache.h" 12 #include "chrome/browser/profiles/profile_info_cache.h"
13 #include "chrome/browser/profiles/profile_io_data.h" 13 #include "chrome/browser/profiles/profile_io_data.h"
14 #include "chrome/browser/profiles/profile_manager.h" 14 #include "chrome/browser/profiles/profile_manager.h"
15 #include "chrome/browser/signin/fake_signin_manager.h"
15 #include "chrome/browser/signin/signin_manager_factory.h" 16 #include "chrome/browser/signin/signin_manager_factory.h"
16 #include "chrome/browser/signin/signin_manager_fake.h"
17 #include "chrome/browser/signin/signin_names_io_thread.h" 17 #include "chrome/browser/signin/signin_names_io_thread.h"
18 #include "chrome/browser/sync/profile_sync_service_factory.h" 18 #include "chrome/browser/sync/profile_sync_service_factory.h"
19 #include "chrome/browser/sync/profile_sync_service_mock.h" 19 #include "chrome/browser/sync/profile_sync_service_mock.h"
20 #include "chrome/browser/sync/test_profile_sync_service.h" 20 #include "chrome/browser/sync/test_profile_sync_service.h"
21 #include "chrome/browser/ui/sync/one_click_signin_helper.h" 21 #include "chrome/browser/ui/sync/one_click_signin_helper.h"
22 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
23 #include "chrome/test/base/testing_browser_process.h" 23 #include "chrome/test/base/testing_browser_process.h"
24 #include "chrome/test/base/testing_pref_service_syncable.h" 24 #include "chrome/test/base/testing_pref_service_syncable.h"
25 #include "chrome/test/base/testing_profile.h" 25 #include "chrome/test/base/testing_profile.h"
26 #include "chrome/test/base/testing_profile_manager.h" 26 #include "chrome/test/base/testing_profile_manager.h"
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 prefs::kSigninAllowed, base::Value::CreateBooleanValue(true)); 891 prefs::kSigninAllowed, base::Value::CreateBooleanValue(true));
892 892
893 // Simulate a policy disabling sync by writing kSyncManaged directly. 893 // Simulate a policy disabling sync by writing kSyncManaged directly.
894 // We should still offer to sign in the browser. 894 // We should still offer to sign in the browser.
895 profile_->GetTestingPrefService()->SetManagedPref( 895 profile_->GetTestingPrefService()->SetManagedPref(
896 prefs::kSyncManaged, base::Value::CreateBooleanValue(true)); 896 prefs::kSyncManaged, base::Value::CreateBooleanValue(true));
897 EXPECT_EQ(OneClickSigninHelper::CAN_OFFER, 897 EXPECT_EQ(OneClickSigninHelper::CAN_OFFER,
898 OneClickSigninHelper::CanOfferOnIOThreadImpl( 898 OneClickSigninHelper::CanOfferOnIOThreadImpl(
899 valid_gaia_url_, std::string(), &request_, io_data.get())); 899 valid_gaia_url_, std::string(), &request_, io_data.get()));
900 } 900 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_unittest.mm ('k') | chrome/browser/ui/webui/sync_setup_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698