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 "components/policy/core/common/policy_service_impl.h" | 5 #include "components/policy/core/common/policy_service_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "components/policy/core/common/external_data_fetcher.h" | 17 #include "components/policy/core/common/external_data_fetcher.h" |
18 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 18 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
19 #include "components/policy/core/common/mock_policy_service.h" | 19 #include "components/policy/core/common/mock_policy_service.h" |
20 #include "components/policy/core/common/policy_types.h" | 20 #include "components/policy/core/common/policy_types.h" |
21 #include "policy/policy_constants.h" | 21 #include "components/policy/policy_constants.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 using ::testing::AnyNumber; | 25 using ::testing::AnyNumber; |
26 using ::testing::Mock; | 26 using ::testing::Mock; |
27 using ::testing::Return; | 27 using ::testing::Return; |
28 using ::testing::_; | 28 using ::testing::_; |
29 | 29 |
30 namespace policy { | 30 namespace policy { |
31 | 31 |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 nullptr); | 684 nullptr); |
685 | 685 |
686 provider0_.UpdatePolicy(std::move(policy_bundle)); | 686 provider0_.UpdatePolicy(std::move(policy_bundle)); |
687 RunUntilIdle(); | 687 RunUntilIdle(); |
688 | 688 |
689 EXPECT_TRUE(VerifyPolicies(chrome_namespace, expected_chrome)); | 689 EXPECT_TRUE(VerifyPolicies(chrome_namespace, expected_chrome)); |
690 EXPECT_TRUE(VerifyPolicies(extension_namespace, expected_extension)); | 690 EXPECT_TRUE(VerifyPolicies(extension_namespace, expected_extension)); |
691 } | 691 } |
692 | 692 |
693 } // namespace policy | 693 } // namespace policy |
OLD | NEW |