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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc

Issue 1658793002: Update chrome 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 (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 <utility> 5 #include <utility>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/prefs/pref_service.h"
10 #include "base/run_loop.h" 9 #include "base/run_loop.h"
11 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
12 #include "base/time/time.h" 11 #include "base/time/time.h"
13 #include "build/build_config.h" 12 #include "build/build_config.h"
14 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/chrome_notification_types.h" 14 #include "chrome/browser/chrome_notification_types.h"
16 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" 15 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h"
17 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h" 16 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h"
18 #include "chrome/browser/prefs/browser_prefs.h" 17 #include "chrome/browser/prefs/browser_prefs.h"
19 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/signin/account_fetcher_service_factory.h" 19 #include "chrome/browser/signin/account_fetcher_service_factory.h"
21 #include "chrome/browser/signin/chrome_signin_client_factory.h" 20 #include "chrome/browser/signin/chrome_signin_client_factory.h"
22 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h" 21 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h"
23 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 22 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
24 #include "chrome/browser/signin/fake_signin_manager_builder.h" 23 #include "chrome/browser/signin/fake_signin_manager_builder.h"
25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 24 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
26 #include "chrome/browser/signin/signin_manager_factory.h" 25 #include "chrome/browser/signin/signin_manager_factory.h"
27 #include "chrome/browser/signin/test_signin_client_builder.h" 26 #include "chrome/browser/signin/test_signin_client_builder.h"
28 #include "chrome/test/base/testing_browser_process.h" 27 #include "chrome/test/base/testing_browser_process.h"
29 #include "chrome/test/base/testing_profile.h" 28 #include "chrome/test/base/testing_profile.h"
30 #include "components/policy/core/browser/browser_policy_connector.h" 29 #include "components/policy/core/browser/browser_policy_connector.h"
31 #include "components/policy/core/common/cloud/cloud_external_data_manager.h" 30 #include "components/policy/core/common/cloud/cloud_external_data_manager.h"
32 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 31 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
33 #include "components/policy/core/common/cloud/mock_device_management_service.h" 32 #include "components/policy/core/common/cloud/mock_device_management_service.h"
34 #include "components/policy/core/common/cloud/mock_user_cloud_policy_store.h" 33 #include "components/policy/core/common/cloud/mock_user_cloud_policy_store.h"
35 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 34 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
36 #include "components/policy/core/common/schema_registry.h" 35 #include "components/policy/core/common/schema_registry.h"
36 #include "components/prefs/pref_service.h"
37 #include "components/signin/core/browser/account_tracker_service.h" 37 #include "components/signin/core/browser/account_tracker_service.h"
38 #include "components/signin/core/browser/fake_account_fetcher_service.h" 38 #include "components/signin/core/browser/fake_account_fetcher_service.h"
39 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 39 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
40 #include "components/signin/core/browser/signin_manager.h" 40 #include "components/signin/core/browser/signin_manager.h"
41 #include "components/syncable_prefs/testing_pref_service_syncable.h" 41 #include "components/syncable_prefs/testing_pref_service_syncable.h"
42 #include "content/public/browser/browser_context.h" 42 #include "content/public/browser/browser_context.h"
43 #include "content/public/browser/notification_details.h" 43 #include "content/public/browser/notification_details.h"
44 #include "content/public/browser/notification_service.h" 44 #include "content/public/browser/notification_service.h"
45 #include "content/public/browser/notification_source.h" 45 #include "content/public/browser/notification_source.h"
46 #include "content/public/test/test_browser_thread_bundle.h" 46 #include "content/public/test/test_browser_thread_bundle.h"
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 base::RunLoop().RunUntilIdle(); 822 base::RunLoop().RunUntilIdle();
823 EXPECT_FALSE(manager_->IsClientRegistered()); 823 EXPECT_FALSE(manager_->IsClientRegistered());
824 #if !defined(OS_ANDROID) 824 #if !defined(OS_ANDROID)
825 EXPECT_FALSE(signin_manager_->IsSignoutProhibited()); 825 EXPECT_FALSE(signin_manager_->IsSignoutProhibited());
826 #endif 826 #endif
827 } 827 }
828 828
829 } // namespace 829 } // namespace
830 830
831 } // namespace policy 831 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698