| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 class DeviceLocalAccountPolicyServiceTest | 110 class DeviceLocalAccountPolicyServiceTest |
| 111 : public DeviceLocalAccountPolicyServiceTestBase { | 111 : public DeviceLocalAccountPolicyServiceTestBase { |
| 112 public: | 112 public: |
| 113 MOCK_METHOD1(OnRefreshDone, void(bool)); | 113 MOCK_METHOD1(OnRefreshDone, void(bool)); |
| 114 | 114 |
| 115 protected: | 115 protected: |
| 116 DeviceLocalAccountPolicyServiceTest(); | 116 DeviceLocalAccountPolicyServiceTest(); |
| 117 | 117 |
| 118 virtual void SetUp() override; | 118 void SetUp() override; |
| 119 virtual void TearDown() override; | 119 void TearDown() override; |
| 120 | 120 |
| 121 void InstallDevicePolicy() override; | 121 void InstallDevicePolicy() override; |
| 122 | 122 |
| 123 MockDeviceLocalAccountPolicyServiceObserver service_observer_; | 123 MockDeviceLocalAccountPolicyServiceObserver service_observer_; |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyServiceTest); | 126 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyServiceTest); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 DeviceLocalAccountPolicyServiceTestBase:: | 129 DeviceLocalAccountPolicyServiceTestBase:: |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 em::DeviceManagementResponse response; | 978 em::DeviceManagementResponse response; |
| 979 device_local_account_policy_.Build(); | 979 device_local_account_policy_.Build(); |
| 980 response.mutable_policy_response()->add_response()->CopyFrom( | 980 response.mutable_policy_response()->add_response()->CopyFrom( |
| 981 device_local_account_policy_.policy()); | 981 device_local_account_policy_.policy()); |
| 982 request_job->SendResponse(DM_STATUS_SUCCESS, response); | 982 request_job->SendResponse(DM_STATUS_SUCCESS, response); |
| 983 FlushDeviceSettings(); | 983 FlushDeviceSettings(); |
| 984 Mock::VerifyAndClearExpectations(&provider_observer_); | 984 Mock::VerifyAndClearExpectations(&provider_observer_); |
| 985 } | 985 } |
| 986 | 986 |
| 987 } // namespace policy | 987 } // namespace policy |
| OLD | NEW |