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/chromeos/policy/device_local_account_policy_service.h" | 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 35 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
36 #include "components/policy/core/common/cloud/cloud_policy_service.h" | 36 #include "components/policy/core/common/cloud/cloud_policy_service.h" |
37 #include "components/policy/core/common/cloud/mock_device_management_service.h" | 37 #include "components/policy/core/common/cloud/mock_device_management_service.h" |
38 #include "components/policy/core/common/cloud/policy_builder.h" | 38 #include "components/policy/core/common/cloud/policy_builder.h" |
39 #include "components/policy/core/common/external_data_fetcher.h" | 39 #include "components/policy/core/common/external_data_fetcher.h" |
40 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 40 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
41 #include "components/policy/core/common/policy_bundle.h" | 41 #include "components/policy/core/common/policy_bundle.h" |
42 #include "components/policy/core/common/policy_map.h" | 42 #include "components/policy/core/common/policy_map.h" |
43 #include "components/policy/core/common/policy_types.h" | 43 #include "components/policy/core/common/policy_types.h" |
44 #include "components/policy/core/common/schema_registry.h" | 44 #include "components/policy/core/common/schema_registry.h" |
| 45 #include "components/policy/policy_constants.h" |
| 46 #include "components/policy/proto/cloud_policy.pb.h" |
| 47 #include "components/policy/proto/device_management_backend.pb.h" |
45 #include "net/url_request/url_request_context_getter.h" | 48 #include "net/url_request/url_request_context_getter.h" |
46 #include "net/url_request/url_request_test_util.h" | 49 #include "net/url_request/url_request_test_util.h" |
47 #include "policy/policy_constants.h" | |
48 #include "policy/proto/cloud_policy.pb.h" | |
49 #include "policy/proto/device_management_backend.pb.h" | |
50 #include "testing/gtest/include/gtest/gtest.h" | 50 #include "testing/gtest/include/gtest/gtest.h" |
51 | 51 |
52 using testing::AnyNumber; | 52 using testing::AnyNumber; |
53 using testing::AtLeast; | 53 using testing::AtLeast; |
54 using testing::Mock; | 54 using testing::Mock; |
55 using testing::SaveArg; | 55 using testing::SaveArg; |
56 using testing::_; | 56 using testing::_; |
57 | 57 |
58 namespace em = enterprise_management; | 58 namespace em = enterprise_management; |
59 | 59 |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 em::DeviceManagementResponse response; | 970 em::DeviceManagementResponse response; |
971 device_local_account_policy_.Build(); | 971 device_local_account_policy_.Build(); |
972 response.mutable_policy_response()->add_response()->CopyFrom( | 972 response.mutable_policy_response()->add_response()->CopyFrom( |
973 device_local_account_policy_.policy()); | 973 device_local_account_policy_.policy()); |
974 request_job->SendResponse(DM_STATUS_SUCCESS, response); | 974 request_job->SendResponse(DM_STATUS_SUCCESS, response); |
975 FlushDeviceSettings(); | 975 FlushDeviceSettings(); |
976 Mock::VerifyAndClearExpectations(&provider_observer_); | 976 Mock::VerifyAndClearExpectations(&provider_observer_); |
977 } | 977 } |
978 | 978 |
979 } // namespace policy | 979 } // namespace policy |
OLD | NEW |