| 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_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | |
| 11 | |
| 12 class Profile; | |
| 13 | |
| 14 namespace ownership { | |
| 15 class OwnerKeyUtil; | |
| 16 } | |
| 17 | |
| 18 namespace chromeos { | |
| 19 | |
| 20 class FakeOwnerSettingsService : public OwnerSettingsServiceChromeOS { | |
| 21 public: | |
| 22 FakeOwnerSettingsService( | |
| 23 Profile* profile, | |
| 24 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); | |
| 25 ~FakeOwnerSettingsService() override; | |
| 26 | |
| 27 void set_set_management_settings_result(bool success) { | |
| 28 set_management_settings_result_ = success; | |
| 29 } | |
| 30 | |
| 31 const ManagementSettings& last_settings() const { | |
| 32 return last_settings_; | |
| 33 } | |
| 34 | |
| 35 // OwnerSettingsServiceChromeOS: | |
| 36 void SetManagementSettings( | |
| 37 const ManagementSettings& settings, | |
| 38 const OnManagementSettingsSetCallback& callback) override; | |
| 39 | |
| 40 private: | |
| 41 bool set_management_settings_result_; | |
| 42 ManagementSettings last_settings_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(FakeOwnerSettingsService); | |
| 45 }; | |
| 46 | |
| 47 } // namespace chromeos | |
| 48 | |
| 49 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_ | |
| OLD | NEW |