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

Unified Diff: components/policy/core/common/cloud/policy_header_service_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/policy_header_service_unittest.cc
diff --git a/components/policy/core/common/cloud/policy_header_service_unittest.cc b/components/policy/core/common/cloud/policy_header_service_unittest.cc
index b8c4e5b2ee3b2b1ec5eacf1827db80dd5bd5b345..c5cf639ddb09f794efba05b7194608e52a8a6dd6 100644
--- a/components/policy/core/common/cloud/policy_header_service_unittest.cc
+++ b/components/policy/core/common/cloud/policy_header_service_unittest.cc
@@ -6,6 +6,7 @@
#include "base/json/json_reader.h"
#include "base/test/test_simple_task_runner.h"
#include "base/values.h"
+#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/mock_cloud_policy_store.h"
#include "components/policy/core/common/cloud/policy_header_io_helper.h"
#include "components/policy/core/common/cloud/policy_header_service.h"
@@ -37,8 +38,10 @@ class PolicyHeaderServiceTest : public testing::Test {
virtual ~PolicyHeaderServiceTest() {}
virtual void SetUp() OVERRIDE {
- service_.reset(new PolicyHeaderService(
- kDMServerURL, &user_store_, &device_store_));
+ service_.reset(new PolicyHeaderService(kDMServerURL,
+ kPolicyVerificationKeyHash,
+ &user_store_,
+ &device_store_));
helper_ = service_->CreatePolicyHeaderIOHelper(task_runner_).Pass();
}

Powered by Google App Engine
This is Rietveld 408576698