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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "base/values.h" | 13 #include "base/values.h" |
13 #include "components/policy/core/common/external_data_fetcher.h" | 14 #include "components/policy/core/common/external_data_fetcher.h" |
14 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 15 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
15 #include "components/policy/core/common/mock_policy_service.h" | 16 #include "components/policy/core/common/mock_policy_service.h" |
16 #include "components/policy/core/common/policy_types.h" | 17 #include "components/policy/core/common/policy_types.h" |
17 #include "policy/policy_constants.h" | 18 #include "policy/policy_constants.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 NULL); | 770 NULL); |
770 | 771 |
771 provider0_.UpdatePolicy(policy_bundle.Pass()); | 772 provider0_.UpdatePolicy(policy_bundle.Pass()); |
772 RunUntilIdle(); | 773 RunUntilIdle(); |
773 | 774 |
774 EXPECT_TRUE(VerifyPolicies(chrome_namespace, expected_chrome)); | 775 EXPECT_TRUE(VerifyPolicies(chrome_namespace, expected_chrome)); |
775 EXPECT_TRUE(VerifyPolicies(extension_namespace, expected_extension)); | 776 EXPECT_TRUE(VerifyPolicies(extension_namespace, expected_extension)); |
776 } | 777 } |
777 | 778 |
778 } // namespace policy | 779 } // namespace policy |
OLD | NEW |