| 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/forwarding_policy_provider.h" | 5 #include "chrome/browser/policy/forwarding_policy_provider.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 9 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
| 10 #include "chrome/browser/policy/policy_bundle.h" | |
| 11 #include "chrome/browser/policy/schema_registry.h" | 10 #include "chrome/browser/policy/schema_registry.h" |
| 11 #include "components/policy/core/common/policy_bundle.h" |
| 12 #include "components/policy/core/common/policy_map.h" | 12 #include "components/policy/core/common/policy_map.h" |
| 13 #include "components/policy/core/common/policy_types.h" | 13 #include "components/policy/core/common/policy_types.h" |
| 14 #include "components/policy/core/common/schema.h" | 14 #include "components/policy/core/common/schema.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 using testing::_; | 18 using testing::_; |
| 19 using testing::Mock; | 19 using testing::Mock; |
| 20 using testing::Return; | 20 using testing::Return; |
| 21 | 21 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 EXPECT_TRUE(forwarding_provider_.IsInitializationComplete( | 164 EXPECT_TRUE(forwarding_provider_.IsInitializationComplete( |
| 165 policy::POLICY_DOMAIN_EXTENSIONS)); | 165 policy::POLICY_DOMAIN_EXTENSIONS)); |
| 166 | 166 |
| 167 // Keeps forwarding. | 167 // Keeps forwarding. |
| 168 EXPECT_CALL(observer_, OnUpdatePolicy(_)); | 168 EXPECT_CALL(observer_, OnUpdatePolicy(_)); |
| 169 mock_provider_.UpdateChromePolicy(policy_map); | 169 mock_provider_.UpdateChromePolicy(policy_map); |
| 170 Mock::VerifyAndClearExpectations(&observer_); | 170 Mock::VerifyAndClearExpectations(&observer_); |
| 171 } | 171 } |
| 172 | 172 |
| 173 } // namespace policy | 173 } // namespace policy |
| OLD | NEW |