Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / chromeos / policy / fake_device_cloud_policy_manager.h
blob2402a04142312d3d8a760d730fe77844963f4c44
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"
13 namespace base {
14 class SequencedTaskRunner;
17 namespace policy {
19 class DeviceCloudPolicyStoreChromeOS;
21 class FakeDeviceCloudPolicyManager : public DeviceCloudPolicyManagerChromeOS {
22 public:
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;
36 private:
37 bool unregister_result_;
39 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyManager);
42 } // namespace policy
44 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_MANAGER_H_