OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/policy/configuration_policy_provider_test.h" | 5 #include "components/policy/core/common/configuration_policy_provider_test.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/policy/configuration_policy_provider.h" | 11 #include "components/policy/core/common/configuration_policy_provider.h" |
12 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | |
13 #include "components/policy/core/common/external_data_fetcher.h" | 12 #include "components/policy/core/common/external_data_fetcher.h" |
| 13 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
14 #include "components/policy/core/common/policy_bundle.h" | 14 #include "components/policy/core/common/policy_bundle.h" |
15 #include "components/policy/core/common/policy_map.h" | 15 #include "components/policy/core/common/policy_map.h" |
16 #include "components/policy/core/common/policy_namespace.h" | 16 #include "components/policy/core/common/policy_namespace.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 | 18 |
19 using ::testing::Mock; | 19 using ::testing::Mock; |
20 using ::testing::_; | 20 using ::testing::_; |
21 | 21 |
22 namespace policy { | 22 namespace policy { |
23 | 23 |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 394 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
395 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) | 395 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) |
396 .CopyFrom(expected_policy); | 396 .CopyFrom(expected_policy); |
397 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 397 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
398 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) | 398 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) |
399 .CopyFrom(expected_policy); | 399 .CopyFrom(expected_policy); |
400 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); | 400 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); |
401 } | 401 } |
402 | 402 |
403 } // namespace policy | 403 } // namespace policy |
OLD | NEW |