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

Unified Diff: base/test/values_test_util.cc

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reverting webdriver:Command::parameters_ to const Created 8 years, 5 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 | « base/test/trace_event_analyzer.cc ('k') | base/values.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/values_test_util.cc
diff --git a/base/test/values_test_util.cc b/base/test/values_test_util.cc
index 91ce347be77e40b767ec68048c0b67c60c0b19fc..a5667f14b81e9700ef6e248fb1a34efb183302fd 100644
--- a/base/test/values_test_util.cc
+++ b/base/test/values_test_util.cc
@@ -21,7 +21,7 @@ void ExpectDictBooleanValue(bool expected_value,
void ExpectDictDictionaryValue(const DictionaryValue& expected_value,
const DictionaryValue& value,
const std::string& key) {
- DictionaryValue* dict_value = NULL;
+ const DictionaryValue* dict_value = NULL;
EXPECT_TRUE(value.GetDictionary(key, &dict_value)) << key;
EXPECT_TRUE(Value::Equals(dict_value, &expected_value)) << key;
}
@@ -37,7 +37,7 @@ void ExpectDictIntegerValue(int expected_value,
void ExpectDictListValue(const ListValue& expected_value,
const DictionaryValue& value,
const std::string& key) {
- ListValue* list_value = NULL;
+ const ListValue* list_value = NULL;
EXPECT_TRUE(value.GetList(key, &list_value)) << key;
EXPECT_TRUE(Value::Equals(list_value, &expected_value)) << key;
}
« no previous file with comments | « base/test/trace_event_analyzer.cc ('k') | base/values.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698