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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_validator_unittest.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" 12 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
13 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" 13 #include "components/policy/core/common/cloud/cloud_policy_validator.h"
14 #include "chrome/browser/policy/cloud/policy_builder.h" 14 #include "components/policy/core/common/cloud/policy_builder.h"
15 #include "crypto/rsa_private_key.h" 15 #include "crypto/rsa_private_key.h"
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace em = enterprise_management; 19 namespace em = enterprise_management;
20 20
21 using testing::Invoke; 21 using testing::Invoke;
22 using testing::Mock; 22 using testing::Mock;
23 23
24 namespace policy { 24 namespace policy {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 TEST_F(CloudPolicyValidatorTest, NoRotation) { 289 TEST_F(CloudPolicyValidatorTest, NoRotation) {
290 allow_key_rotation_ = false; 290 allow_key_rotation_ = false;
291 policy_.UnsetNewSigningKey(); 291 policy_.UnsetNewSigningKey();
292 Validate(CheckStatus(CloudPolicyValidatorBase::VALIDATION_OK)); 292 Validate(CheckStatus(CloudPolicyValidatorBase::VALIDATION_OK));
293 } 293 }
294 294
295 } // namespace 295 } // namespace
296 296
297 } // namespace policy 297 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698