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

Unified Diff: chrome/browser/policy/device_local_account_policy_service_unittest.cc

Issue 11444029: Added UserPolicySigninService::FetchPolicyForSignedInUser(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/device_local_account_policy_service_unittest.cc
diff --git a/chrome/browser/policy/device_local_account_policy_service_unittest.cc b/chrome/browser/policy/device_local_account_policy_service_unittest.cc
index 879c9c0844f73a47cf30fbee02820b15a3dc63e7..4ab27e1723211a03661ebbc7d31dd18ad14e3e51 100644
--- a/chrome/browser/policy/device_local_account_policy_service_unittest.cc
+++ b/chrome/browser/policy/device_local_account_policy_service_unittest.cc
@@ -74,7 +74,7 @@ class DeviceLocalAccountPolicyServiceTest
Mock::VerifyAndClearExpectations(&service_observer_);
}
- MOCK_METHOD0(OnRefreshDone, void(void));
+ MOCK_METHOD1(OnRefreshDone, void(bool));
PolicyMap expected_policy_map_;
UserPolicyBuilder device_local_account_policy_;
@@ -290,7 +290,7 @@ TEST_F(DeviceLocalAccountPolicyServiceTest, RefreshPolicy) {
EXPECT_CALL(mock_device_management_service_, CreateJob(_))
.WillOnce(mock_device_management_service_.SucceedJob(response));
EXPECT_CALL(mock_device_management_service_, StartJob(_, _, _, _, _, _, _));
- EXPECT_CALL(*this, OnRefreshDone()).Times(1);
+ EXPECT_CALL(*this, OnRefreshDone(true)).Times(1);
EXPECT_CALL(service_observer_, OnPolicyUpdated(PolicyBuilder::kFakeUsername));
broker->core()->service()->RefreshPolicy(
base::Bind(&DeviceLocalAccountPolicyServiceTest::OnRefreshDone,
« no previous file with comments | « chrome/browser/policy/device_local_account_policy_provider.cc ('k') | chrome/browser/policy/user_cloud_policy_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698