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 "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/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/chromeos/policy/device_local_account.h" | 21 #include "chrome/browser/chromeos/policy/device_local_account.h" |
22 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" | 22 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" |
23 #include "chrome/browser/chromeos/settings/cros_settings.h" | 23 #include "chrome/browser/chromeos/settings/cros_settings.h" |
24 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 24 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
25 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 25 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
26 #include "chrome/browser/policy/cloud/cloud_policy_client.h" | 26 #include "chrome/browser/policy/cloud/cloud_policy_client.h" |
27 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 27 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
28 #include "chrome/browser/policy/cloud/cloud_policy_service.h" | 28 #include "chrome/browser/policy/cloud/cloud_policy_service.h" |
29 #include "chrome/browser/policy/cloud/mock_device_management_service.h" | 29 #include "chrome/browser/policy/cloud/mock_device_management_service.h" |
30 #include "chrome/browser/policy/cloud/policy_builder.h" | 30 #include "chrome/browser/policy/cloud/policy_builder.h" |
31 #include "chrome/browser/policy/external_data_fetcher.h" | |
32 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 31 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
33 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" | 32 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" |
34 #include "chrome/browser/policy/schema_registry.h" | 33 #include "chrome/browser/policy/schema_registry.h" |
35 #include "chrome/common/chrome_paths.h" | 34 #include "chrome/common/chrome_paths.h" |
36 #include "chromeos/chromeos_paths.h" | 35 #include "chromeos/chromeos_paths.h" |
37 #include "chromeos/dbus/power_policy_controller.h" | 36 #include "chromeos/dbus/power_policy_controller.h" |
| 37 #include "components/policy/core/common/external_data_fetcher.h" |
38 #include "net/url_request/url_request_context_getter.h" | 38 #include "net/url_request/url_request_context_getter.h" |
39 #include "policy/policy_constants.h" | 39 #include "policy/policy_constants.h" |
40 #include "policy/proto/cloud_policy.pb.h" | 40 #include "policy/proto/cloud_policy.pb.h" |
41 #include "testing/gtest/include/gtest/gtest.h" | 41 #include "testing/gtest/include/gtest/gtest.h" |
42 | 42 |
43 using testing::AnyNumber; | 43 using testing::AnyNumber; |
44 using testing::AtLeast; | 44 using testing::AtLeast; |
45 using testing::Mock; | 45 using testing::Mock; |
46 using testing::SaveArg; | 46 using testing::SaveArg; |
47 using testing::_; | 47 using testing::_; |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 em::DeviceManagementResponse response; | 942 em::DeviceManagementResponse response; |
943 device_local_account_policy_.Build(); | 943 device_local_account_policy_.Build(); |
944 response.mutable_policy_response()->add_response()->CopyFrom( | 944 response.mutable_policy_response()->add_response()->CopyFrom( |
945 device_local_account_policy_.policy()); | 945 device_local_account_policy_.policy()); |
946 request_job->SendResponse(DM_STATUS_SUCCESS, response); | 946 request_job->SendResponse(DM_STATUS_SUCCESS, response); |
947 FlushDeviceSettings(); | 947 FlushDeviceSettings(); |
948 Mock::VerifyAndClearExpectations(&provider_observer_); | 948 Mock::VerifyAndClearExpectations(&provider_observer_); |
949 } | 949 } |
950 | 950 |
951 } // namespace policy | 951 } // namespace policy |
OLD | NEW |