Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: chrome/browser/chromeos/ownership/fake_owner_settings_service.h

Issue 751703003: Implemented consumer management unenrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcpm
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1084e446259b9fc013772e84c8f3851a26591ff3
--- /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() {
ygorshenin1 2015/01/12 10:08:55 nit: could you please mark the method as const?
davidyu 2015/01/13 05:43:52 Done.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698