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

Unified Diff: chrome/browser/chromeos/settings/session_manager_operation_unittest.cc

Issue 2486813002: Add DeviceADPolicyManager to provide AD policy. (Closed)
Patch Set: Created 4 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/chromeos/settings/session_manager_operation_unittest.cc
diff --git a/chrome/browser/chromeos/settings/session_manager_operation_unittest.cc b/chrome/browser/chromeos/settings/session_manager_operation_unittest.cc
index a04ee7c398114ac28f8f97245c96f39a970a9e65..ceefdf8b19a3fa8298e5689ecd762d91a6fbda26 100644
--- a/chrome/browser/chromeos/settings/session_manager_operation_unittest.cc
+++ b/chrome/browser/chromeos/settings/session_manager_operation_unittest.cc
@@ -107,6 +107,8 @@ class SessionManagerOperationTest : public testing::Test {
TEST_F(SessionManagerOperationTest, LoadNoPolicyNoKey) {
LoadSettingsOperation op(
+ false, // force_key_load
emaxx 2016/11/11 15:25:09 Not insisting, but I saw the following style of co
Thiemo Nagel 2016/11/16 19:11:01 Done.
+ true, // verify_signature
base::Bind(&SessionManagerOperationTest::OnOperationCompleted,
base::Unretained(this)));
@@ -126,6 +128,8 @@ TEST_F(SessionManagerOperationTest, LoadNoPolicyNoKey) {
TEST_F(SessionManagerOperationTest, LoadOwnerKey) {
owner_key_util_->SetPublicKeyFromPrivateKey(*policy_.GetSigningKey());
LoadSettingsOperation op(
+ false, // force_key_load
+ true, // verify_signature
base::Bind(&SessionManagerOperationTest::OnOperationCompleted,
base::Unretained(this)));
@@ -143,6 +147,8 @@ TEST_F(SessionManagerOperationTest, LoadPolicy) {
owner_key_util_->SetPublicKeyFromPrivateKey(*policy_.GetSigningKey());
device_settings_test_helper_.set_policy_blob(policy_.GetBlob());
LoadSettingsOperation op(
+ false, // force_key_load
+ true, // verify_signature
base::Bind(&SessionManagerOperationTest::OnOperationCompleted,
base::Unretained(this)));
@@ -165,6 +171,8 @@ TEST_F(SessionManagerOperationTest, RestartLoad) {
owner_key_util_->SetPrivateKey(policy_.GetSigningKey());
device_settings_test_helper_.set_policy_blob(policy_.GetBlob());
LoadSettingsOperation op(
+ false, // force_key_load
+ true, // verify_signature
base::Bind(&SessionManagerOperationTest::OnOperationCompleted,
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698