| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_FAKE_CONSUMER_MANAGEMENT_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_FAKE_CONSUMER_MANAGEMENT_SERVICE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chrome/browser/chromeos/policy/consumer_management_service.h" | |
| 10 #include "chrome/browser/chromeos/policy/consumer_management_stage.h" | |
| 11 | |
| 12 namespace policy { | |
| 13 | |
| 14 class FakeConsumerManagementService : public ConsumerManagementService { | |
| 15 public: | |
| 16 FakeConsumerManagementService(); | |
| 17 ~FakeConsumerManagementService() override; | |
| 18 | |
| 19 // Set both status and stage. | |
| 20 void SetStatusAndStage(Status status, const ConsumerManagementStage& stage); | |
| 21 | |
| 22 // ConsumerManagementServcie: | |
| 23 Status GetStatus() const override; | |
| 24 ConsumerManagementStage GetStage() const override; | |
| 25 void SetStage(const ConsumerManagementStage& stage) override; | |
| 26 | |
| 27 private: | |
| 28 Status status_; | |
| 29 ConsumerManagementStage stage_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(FakeConsumerManagementService); | |
| 32 }; | |
| 33 | |
| 34 } // namespace policy | |
| 35 | |
| 36 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_CONSUMER_MANAGEMENT_SERVICE_H_ | |
| OLD | NEW |