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

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

Issue 2230533002: Delete dead consumer enrollment code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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/settings/device_settings_provider.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/settings/device_settings_provider_unittest.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc b/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc
index 1a13aa9c43ecab6182f5bf0e01c338c85d2640e9..3ced026597a18667223442bb56e0a86220b4e580 100644
--- a/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc
+++ b/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc
@@ -410,25 +410,6 @@ TEST_F(DeviceSettingsProviderTest, LegacyDeviceLocalAccounts) {
EXPECT_TRUE(base::Value::Equals(&expected_accounts, actual_accounts));
}
-TEST_F(DeviceSettingsProviderTest, OwnerIsStillSetWhenDeviceIsConsumerManaged) {
- owner_key_util_->SetPrivateKey(device_policy_.GetSigningKey());
- InitOwner(AccountId::FromUserEmail(device_policy_.policy_data().username()),
- true);
- device_policy_.policy_data().set_management_mode(
- em::PolicyData::CONSUMER_MANAGED);
- device_policy_.policy_data().set_request_token("test request token");
- device_policy_.Build();
- device_settings_test_helper_.set_policy_blob(device_policy_.GetBlob());
- FlushDeviceSettings();
-
- // Expect that kDeviceOwner is not empty.
- const base::Value* value = provider_->Get(kDeviceOwner);
- ASSERT_TRUE(value);
- std::string string_value;
- EXPECT_TRUE(value->GetAsString(&string_value));
- EXPECT_FALSE(string_value.empty());
-}
-
TEST_F(DeviceSettingsProviderTest, DecodeDeviceState) {
EXPECT_CALL(*this, SettingChanged(_)).Times(AtLeast(1));
device_policy_.policy_data().mutable_device_state()->set_device_mode(
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_provider.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698