OLD | NEW |
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/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "base/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 return new SigninManagerFake(static_cast<Profile*>(profile)); | 93 return new SigninManagerFake(static_cast<Profile*>(profile)); |
94 } | 94 } |
95 }; | 95 }; |
96 | 96 |
97 UserCloudPolicyManager* BuildCloudPolicyManager( | 97 UserCloudPolicyManager* BuildCloudPolicyManager( |
98 content::BrowserContext* context) { | 98 content::BrowserContext* context) { |
99 MockUserCloudPolicyStore *store = new MockUserCloudPolicyStore(); | 99 MockUserCloudPolicyStore *store = new MockUserCloudPolicyStore(); |
100 EXPECT_CALL(*store, Load()).Times(AnyNumber()); | 100 EXPECT_CALL(*store, Load()).Times(AnyNumber()); |
101 | 101 |
102 return new UserCloudPolicyManager( | 102 return new UserCloudPolicyManager( |
| 103 kPolicyVerificationKeyHash, |
103 scoped_ptr<UserCloudPolicyStore>(store), | 104 scoped_ptr<UserCloudPolicyStore>(store), |
104 base::FilePath(), | 105 base::FilePath(), |
105 scoped_ptr<CloudExternalDataManager>(), | 106 scoped_ptr<CloudExternalDataManager>(), |
106 base::MessageLoopProxy::current(), | 107 base::MessageLoopProxy::current(), |
107 base::MessageLoopProxy::current(), | 108 base::MessageLoopProxy::current(), |
108 base::MessageLoopProxy::current()); | 109 base::MessageLoopProxy::current()); |
109 } | 110 } |
110 | 111 |
111 class UserPolicySigninServiceTest : public testing::Test { | 112 class UserPolicySigninServiceTest : public testing::Test { |
112 public: | 113 public: |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 base::RunLoop().RunUntilIdle(); | 805 base::RunLoop().RunUntilIdle(); |
805 EXPECT_FALSE(manager_->IsClientRegistered()); | 806 EXPECT_FALSE(manager_->IsClientRegistered()); |
806 #if !defined(OS_ANDROID) | 807 #if !defined(OS_ANDROID) |
807 EXPECT_FALSE(signin_manager_->IsSignoutProhibited()); | 808 EXPECT_FALSE(signin_manager_->IsSignoutProhibited()); |
808 #endif | 809 #endif |
809 } | 810 } |
810 | 811 |
811 } // namespace | 812 } // namespace |
812 | 813 |
813 } // namespace policy | 814 } // namespace policy |
OLD | NEW |