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

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

Issue 10035043: Update RestoreOnStartupPolicyHandler to translate to the correct preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: \n Created 8 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/policy/configuration_policy_handler.cc ('k') | chrome/browser/prefs/session_startup_pref.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/configuration_policy_reader_unittest.cc
diff --git a/chrome/browser/policy/configuration_policy_reader_unittest.cc b/chrome/browser/policy/configuration_policy_reader_unittest.cc
index e57b6c66efd3fd1ee11fd191a2784a992b2a993f..2d7de74d942541706ca72feb8438fdbf9d5473cb 100644
--- a/chrome/browser/policy/configuration_policy_reader_unittest.cc
+++ b/chrome/browser/policy/configuration_policy_reader_unittest.cc
@@ -133,12 +133,12 @@ TEST_F(ConfigurationPolicyReaderTest, SetBooleanValue) {
// Test for integer-valued policy settings.
TEST_F(ConfigurationPolicyReaderTest, SetIntegerValue) {
provider_.AddMandatoryPolicy(key::kRestoreOnStartup,
- Value::CreateIntegerValue(3));
+ Value::CreateIntegerValue(4));
provider_.AddRecommendedPolicy(key::kIncognitoModeAvailability,
Value::CreateIntegerValue(2));
reader_->OnUpdatePolicy(&provider_);
scoped_ptr<DictionaryValue> dict(
- CreateDictionary(key::kRestoreOnStartup, Value::CreateIntegerValue(3)));
+ CreateDictionary(key::kRestoreOnStartup, Value::CreateIntegerValue(4)));
scoped_ptr<DictionaryValue> result(
reader_->GetPolicyStatus(key::kRestoreOnStartup));
EXPECT_TRUE(dict->Equals(result.get()));
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler.cc ('k') | chrome/browser/prefs/session_startup_pref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698