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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client_unittest.cc

Issue 116273002: Added support for signed policy blobs on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for ios. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/cloud_policy_client_unittest.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client_unittest.cc b/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
index 64666ee9079b226ff65d7516e4f26ef6b3a0939f..8502c380709c2aefd7ba05a263f4383634bc8bba 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
@@ -83,11 +83,8 @@ class CloudPolicyClientTest : public testing::Test {
em::PolicyFetchRequest* policy_fetch_request =
policy_request_.mutable_policy_request()->add_request();
policy_fetch_request->set_policy_type(dm_protocol::kChromeUserPolicyType);
-#if defined(OS_CHROMEOS)
policy_fetch_request->set_signature_type(em::PolicyFetchRequest::SHA1_RSA);
-#else
- policy_fetch_request->set_signature_type(em::PolicyFetchRequest::NONE);
-#endif
+ policy_fetch_request->set_verification_key_hash(kPolicyVerificationKeyHash);
policy_response_.mutable_policy_response()->add_response()->set_policy_data(
CreatePolicyData("fake-policy-data"));
@@ -122,6 +119,7 @@ class CloudPolicyClientTest : public testing::Test {
request_context_ = new net::TestURLRequestContextGetter(
loop_.message_loop_proxy());
client_.reset(new CloudPolicyClient(kMachineID, kMachineModel,
+ kPolicyVerificationKeyHash,
user_affiliation, &status_provider_,
&service_,
request_context_));

Powered by Google App Engine
This is Rietveld 408576698