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

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

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 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
Index: chrome/browser/policy/configuration_policy_provider_win_unittest.cc
diff --git a/chrome/browser/policy/configuration_policy_provider_win_unittest.cc b/chrome/browser/policy/configuration_policy_provider_win_unittest.cc
index 433891ac27fc7380b7c6a0cdf1c76578affaac80..ef893844e3cf1eb17e0b538082d4817158e0658e 100644
--- a/chrome/browser/policy/configuration_policy_provider_win_unittest.cc
+++ b/chrome/browser/policy/configuration_policy_provider_win_unittest.cc
@@ -272,7 +272,7 @@ void ConfigurationPolicyProviderWinTest::WriteValue(HKEY hive,
int index = 1;
for (ListValue::const_iterator element(list->begin());
element != list->end(); ++element) {
- ASSERT_TRUE((*element)->IsType(Value::TYPE_STRING));
+ ASSERT_TRUE((*element)->IsString());
std::string element_value;
ASSERT_TRUE((*element)->GetAsString(&element_value));
key.WriteValue(base::IntToString16(index++).c_str(),
@@ -289,7 +289,7 @@ void ConfigurationPolicyProviderWinTest::WriteValue(HKEY hive,
void ConfigurationPolicyProviderWinTest::WriteInvalidValue(HKEY hive,
const char* name,
const Value* value) {
- if (value->IsType(Value::TYPE_STRING))
+ if (value->IsString())
WriteDWORD(hive, name, -1);
else
WriteString(hive, name, L"bad value");
« no previous file with comments | « chrome/browser/policy/configuration_policy_provider_mac_unittest.cc ('k') | chrome/browser/prefs/pref_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698