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

Unified Diff: chrome/browser/policy/mock_device_management_backend.h

Issue 8702009: Add device status reports to policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Mattias' comments and added unit test. Created 9 years, 1 month 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/mock_device_management_backend.h
diff --git a/chrome/browser/policy/mock_device_management_backend.h b/chrome/browser/policy/mock_device_management_backend.h
index 4e4a7c2ec96089d19a3ecb32da4ce2f402660501..1d2ad88a9f4f3b77e4dbf2f6324ecba764a95837 100644
--- a/chrome/browser/policy/mock_device_management_backend.h
+++ b/chrome/browser/policy/mock_device_management_backend.h
@@ -42,11 +42,12 @@ class MockDeviceManagementBackend : public DeviceManagementBackend {
const em::DeviceUnregisterRequest& request,
DeviceUnregisterResponseDelegate* delegate));
- MOCK_METHOD5(ProcessPolicyRequest, void(
+ MOCK_METHOD6(ProcessPolicyRequest, void(
const std::string& device_management_token,
const std::string& device_id,
CloudPolicyDataStore::UserAffiliation affiliation,
const em::DevicePolicyRequest& request,
+ const em::DeviceStatusReportRequest& device_status,
DevicePolicyResponseDelegate* delegate));
private:
@@ -82,7 +83,7 @@ ACTION(MockDeviceManagementBackendSucceedSpdyCloudPolicy) {
// implementing support for signature verification).
fetch_response->set_policy_data_signature("TODO");
fetch_response->set_new_public_key("TODO");
- arg4->HandlePolicyResponse(response);
+ arg5->HandlePolicyResponse(response);
}
ACTION_P(MockDeviceManagementBackendFailRegister, error) {
@@ -90,7 +91,7 @@ ACTION_P(MockDeviceManagementBackendFailRegister, error) {
}
ACTION_P(MockDeviceManagementBackendFailPolicy, error) {
- arg4->OnError(error);
+ arg5->OnError(error);
}
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698