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

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

Issue 1019283004: Switch to direct use of OwnerSettingsServiceChromeOS::Set() in tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rearrange device settings list. Created 5 years, 9 months 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/owner_settings_service_chromeos.h
diff --git a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h
index f1394b4d42dea08ada001c382d492b1448e27faf..d954c3ce7e159fce6e588bf07fcecbee0202d8da 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h
+++ b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h
@@ -195,6 +195,17 @@ class OwnerSettingsServiceChromeOS : public ownership::OwnerSettingsService,
DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOS);
};
+// Helper class for tests. Allows to set some of the settings that are normally
+// read-only.
+class ScopedTestOwnerSettings {
+ public:
+ ScopedTestOwnerSettings();
+ ~ScopedTestOwnerSettings();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ScopedTestOwnerSettings);
+};
+
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698