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/policy_service_impl.h" | 5 #include "chrome/browser/policy/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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | |
14 #include "chrome/browser/policy/mock_policy_service.h" | 13 #include "chrome/browser/policy/mock_policy_service.h" |
15 #include "components/policy/core/common/external_data_fetcher.h" | 14 #include "components/policy/core/common/external_data_fetcher.h" |
| 15 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 using ::testing::AnyNumber; | 19 using ::testing::AnyNumber; |
20 using ::testing::Mock; | 20 using ::testing::Mock; |
21 using ::testing::Return; | 21 using ::testing::Return; |
22 using ::testing::_; | 22 using ::testing::_; |
23 | 23 |
24 namespace policy { | 24 namespace policy { |
25 | 25 |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 EXPECT_TRUE(policy_service_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); | 642 EXPECT_TRUE(policy_service_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); |
643 EXPECT_TRUE( | 643 EXPECT_TRUE( |
644 policy_service_->IsInitializationComplete(POLICY_DOMAIN_EXTENSIONS)); | 644 policy_service_->IsInitializationComplete(POLICY_DOMAIN_EXTENSIONS)); |
645 | 645 |
646 // Cleanup. | 646 // Cleanup. |
647 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, &observer); | 647 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, &observer); |
648 policy_service_->RemoveObserver(POLICY_DOMAIN_EXTENSIONS, &observer); | 648 policy_service_->RemoveObserver(POLICY_DOMAIN_EXTENSIONS, &observer); |
649 } | 649 } |
650 | 650 |
651 } // namespace policy | 651 } // namespace policy |
OLD | NEW |