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

Unified Diff: chrome/browser/chromeos/settings/device_settings_cache_unittest.cc

Issue 2849533005: Fix and re-enable DeviceSettingsCacheTest. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/settings/device_settings_cache_unittest.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_cache_unittest.cc b/chrome/browser/chromeos/settings/device_settings_cache_unittest.cc
index 08cef063b751505bdf10d2faab46787db19ea272..4c1b183f338b3233c26af7ea643c8d45eb90820b 100644
--- a/chrome/browser/chromeos/settings/device_settings_cache_unittest.cc
+++ b/chrome/browser/chromeos/settings/device_settings_cache_unittest.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/chromeos/settings/device_settings_cache.h"
-#include "chrome/browser/chromeos/chromeos/policy/chrome_device_policy.pb.h"
+#include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
#include "chrome/common/pref_names.h"
#include "components/policy/proto/device_management_backend.pb.h"
#include "components/prefs/testing_pref_service.h"
@@ -16,14 +16,14 @@ namespace chromeos {
class DeviceSettingsCacheTest : public testing::Test {
protected:
- virtual void SetUp() {
+ void SetUp() override {
// prepare some data.
policy_.set_policy_type("google/chromeos/device");
em::ChromeDeviceSettingsProto pol;
pol.mutable_allow_new_users()->set_allow_new_users(false);
policy_.set_policy_value(pol.SerializeAsString());
- device_settings_cache::RegisterPrefs(&local_state_);
+ device_settings_cache::RegisterPrefs(local_state_.registry());
}
TestingPrefServiceSimple local_state_;
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698