1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_MANAGER_H_
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
14 class SequencedTaskRunner
;
19 class DeviceCloudPolicyStoreChromeOS
;
21 class FakeDeviceCloudPolicyManager
: public DeviceCloudPolicyManagerChromeOS
{
23 FakeDeviceCloudPolicyManager(
24 scoped_ptr
<DeviceCloudPolicyStoreChromeOS
> store
,
25 const scoped_refptr
<base::SequencedTaskRunner
>& task_runner
);
26 ~FakeDeviceCloudPolicyManager() override
;
28 void set_unregister_result(bool value
) {
29 unregister_result_
= value
;
32 // DeviceCloudPolicyManagerChromeOS:
33 void Unregister(const UnregisterCallback
& callback
) override
;
34 void Disconnect() override
;
37 bool unregister_result_
;
39 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyManager
);
44 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_MANAGER_H_