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/cloud/cloud_policy_manager.h" | 5 #include "chrome/browser/policy/cloud/cloud_policy_manager.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 12 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
13 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h" | 13 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h" |
14 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" | 14 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" |
15 #include "chrome/browser/policy/cloud/policy_builder.h" | 15 #include "chrome/browser/policy/cloud/policy_builder.h" |
16 #include "chrome/browser/policy/configuration_policy_provider_test.h" | 16 #include "chrome/browser/policy/configuration_policy_provider_test.h" |
17 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 17 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
18 #include "chrome/browser/policy/schema_registry.h" | |
19 #include "components/policy/core/common/external_data_fetcher.h" | 18 #include "components/policy/core/common/external_data_fetcher.h" |
| 19 #include "components/policy/core/common/schema_registry.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 using testing::Mock; | 23 using testing::Mock; |
24 using testing::_; | 24 using testing::_; |
25 | 25 |
26 namespace em = enterprise_management; | 26 namespace em = enterprise_management; |
27 | 27 |
28 namespace policy { | 28 namespace policy { |
29 namespace { | 29 namespace { |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 store_.policy_.reset(new em::PolicyData(policy_.policy_data())); | 341 store_.policy_.reset(new em::PolicyData(policy_.policy_data())); |
342 EXPECT_CALL(observer_, OnUpdatePolicy(manager_.get())); | 342 EXPECT_CALL(observer_, OnUpdatePolicy(manager_.get())); |
343 store_.NotifyStoreError(); | 343 store_.NotifyStoreError(); |
344 Mock::VerifyAndClearExpectations(&observer_); | 344 Mock::VerifyAndClearExpectations(&observer_); |
345 | 345 |
346 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); | 346 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); |
347 } | 347 } |
348 | 348 |
349 } // namespace | 349 } // namespace |
350 } // namespace policy | 350 } // namespace policy |
OLD | NEW |