| 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 #include "chrome/browser/chromeos/policy/fake_consumer_management_service.h" | |
| 6 | |
| 7 namespace policy { | |
| 8 | |
| 9 FakeConsumerManagementService::FakeConsumerManagementService() | |
| 10 : ConsumerManagementService(NULL, NULL), | |
| 11 status_(STATUS_UNKNOWN), | |
| 12 stage_(ConsumerManagementStage::None()) { | |
| 13 } | |
| 14 | |
| 15 FakeConsumerManagementService::~FakeConsumerManagementService() { | |
| 16 } | |
| 17 | |
| 18 void FakeConsumerManagementService::SetStatusAndStage( | |
| 19 Status status, const ConsumerManagementStage& stage) { | |
| 20 status_ = status; | |
| 21 SetStage(stage); | |
| 22 } | |
| 23 | |
| 24 ConsumerManagementService::Status | |
| 25 FakeConsumerManagementService::GetStatus() const { | |
| 26 return status_; | |
| 27 } | |
| 28 | |
| 29 ConsumerManagementStage FakeConsumerManagementService::GetStage() const { | |
| 30 return stage_; | |
| 31 } | |
| 32 | |
| 33 void FakeConsumerManagementService::SetStage( | |
| 34 const ConsumerManagementStage& stage) { | |
| 35 stage_ = stage; | |
| 36 NotifyStatusChanged(); | |
| 37 } | |
| 38 | |
| 39 } // namespace policy | |
| OLD | NEW |