| OLD | NEW |
| 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 "chrome/browser/policy/configuration_policy_provider_test.h" | 5 #include "chrome/browser/policy/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 "chrome/browser/policy/configuration_policy_provider.h" |
| 12 #include "chrome/browser/policy/external_data_fetcher.h" | |
| 13 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 12 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
| 14 #include "chrome/browser/policy/policy_bundle.h" | 13 #include "chrome/browser/policy/policy_bundle.h" |
| 15 #include "chrome/browser/policy/policy_map.h" | 14 #include "components/policy/core/common/external_data_fetcher.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 "policy/policy_constants.h" | 17 #include "policy/policy_constants.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 | 19 |
| 20 using ::testing::Mock; | 20 using ::testing::Mock; |
| 21 using ::testing::_; | 21 using ::testing::_; |
| 22 | 22 |
| 23 namespace policy { | 23 namespace policy { |
| 24 | 24 |
| 25 const char kTestChromeSchema[] = | 25 const char kTestChromeSchema[] = |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 433 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
| 434 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) | 434 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) |
| 435 .CopyFrom(expected_policy); | 435 .CopyFrom(expected_policy); |
| 436 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 436 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
| 437 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) | 437 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) |
| 438 .CopyFrom(expected_policy); | 438 .CopyFrom(expected_policy); |
| 439 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); | 439 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); |
| 440 } | 440 } |
| 441 | 441 |
| 442 } // namespace policy | 442 } // namespace policy |
| OLD | NEW |