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

Unified Diff: chrome/browser/policy/device_policy_cache_unittest.cc

Issue 8382005: Rename network configuration policy as per Zhanyong's proposal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test. Created 9 years, 2 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/policy/device_policy_cache_unittest.cc
diff --git a/chrome/browser/policy/device_policy_cache_unittest.cc b/chrome/browser/policy/device_policy_cache_unittest.cc
index cb3be9257090f797dc0ebf458a155c4edf8e7245..675af19539437d7a296bd87da616c9237928349b 100644
--- a/chrome/browser/policy/device_policy_cache_unittest.cc
+++ b/chrome/browser/policy/device_policy_cache_unittest.cc
@@ -241,7 +241,7 @@ TEST_F(DevicePolicyCacheTest, SetDeviceNetworkConfigurationPolicy) {
std::string fake_config("{ 'NetworkConfigurations': [] }");
em::PolicyFetchResponse policy;
em::ChromeDeviceSettingsProto settings;
- settings.mutable_network_configuration()->set_network_configuration(
+ settings.mutable_open_network_configuration()->set_open_network_configuration(
fake_config);
CreatePolicy(&policy, kTestUser, settings);
EXPECT_CALL(signed_settings_helper_, StartRetrievePolicyOp(_)).WillOnce(
@@ -252,7 +252,7 @@ TEST_F(DevicePolicyCacheTest, SetDeviceNetworkConfigurationPolicy) {
StringValue expected_config(fake_config);
EXPECT_TRUE(
Value::Equals(&expected_config,
- GetMandatoryPolicy(kPolicyDeviceNetworkConfiguration)));
+ GetMandatoryPolicy(kPolicyDeviceOpenNetworkConfiguration)));
}
} // namespace policy
« no previous file with comments | « chrome/browser/policy/device_policy_cache.cc ('k') | chrome/browser/policy/proto/chrome_device_policy.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698