| Index: chrome/browser/chromeos/ownership/fake_owner_settings_service.h
|
| diff --git a/chrome/browser/chromeos/ownership/fake_owner_settings_service.h b/chrome/browser/chromeos/ownership/fake_owner_settings_service.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bed4d066792373a170db9a4dadaa7a41f08ccfaf
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/ownership/fake_owner_settings_service.h
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
|
| +#define CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
|
| +
|
| +class Profile;
|
| +
|
| +namespace ownership {
|
| +class OwnerKeyUtil;
|
| +}
|
| +
|
| +namespace chromeos {
|
| +
|
| +class FakeOwnerSettingsService : public OwnerSettingsServiceChromeOS {
|
| + public:
|
| + FakeOwnerSettingsService(
|
| + Profile* profile,
|
| + const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
|
| + ~FakeOwnerSettingsService() override;
|
| +
|
| + void set_set_management_settings_result(bool success) {
|
| + set_management_settings_result_ = success;
|
| + }
|
| +
|
| + const ManagementSettings& last_settings() const {
|
| + return last_settings_;
|
| + }
|
| +
|
| + // OwnerSettingsServiceChromeOS:
|
| + void SetManagementSettings(
|
| + const ManagementSettings& settings,
|
| + const OnManagementSettingsSetCallback& callback) override;
|
| +
|
| + private:
|
| + bool set_management_settings_result_;
|
| + ManagementSettings last_settings_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(FakeOwnerSettingsService);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
|
|
|