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/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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" |
10 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 11 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
11 #include "chrome/browser/policy/cloud_policy_client.h" | 12 #include "chrome/browser/policy/cloud/cloud_policy_client.h" |
12 #include "chrome/browser/policy/cloud_policy_constants.h" | 13 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
13 #include "chrome/browser/policy/cloud_policy_service.h" | 14 #include "chrome/browser/policy/cloud/cloud_policy_service.h" |
14 #include "chrome/browser/policy/device_local_account_policy_provider.h" | 15 #include "chrome/browser/policy/cloud/mock_device_management_service.h" |
| 16 #include "chrome/browser/policy/cloud/policy_builder.h" |
15 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 17 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
16 #include "chrome/browser/policy/mock_device_management_service.h" | |
17 #include "chrome/browser/policy/policy_builder.h" | |
18 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 18 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
19 #include "policy/policy_constants.h" | 19 #include "policy/policy_constants.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 using testing::AnyNumber; | 22 using testing::AnyNumber; |
23 using testing::AtLeast; | 23 using testing::AtLeast; |
24 using testing::Mock; | 24 using testing::Mock; |
25 using testing::SaveArg; | 25 using testing::SaveArg; |
26 using testing::_; | 26 using testing::_; |
27 | 27 |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 ASSERT_TRUE(request_job); | 541 ASSERT_TRUE(request_job); |
542 em::DeviceManagementResponse response; | 542 em::DeviceManagementResponse response; |
543 response.mutable_policy_response()->add_response()->CopyFrom( | 543 response.mutable_policy_response()->add_response()->CopyFrom( |
544 device_local_account_policy_.policy()); | 544 device_local_account_policy_.policy()); |
545 request_job->SendResponse(DM_STATUS_SUCCESS, response); | 545 request_job->SendResponse(DM_STATUS_SUCCESS, response); |
546 FlushDeviceSettings(); | 546 FlushDeviceSettings(); |
547 Mock::VerifyAndClearExpectations(&provider_observer_); | 547 Mock::VerifyAndClearExpectations(&provider_observer_); |
548 } | 548 } |
549 | 549 |
550 } // namespace policy | 550 } // namespace policy |
OLD | NEW |