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

Unified Diff: chromeos/network/onc/onc_test_utils.cc

Issue 925783002: Split ValueSerializer into separate Serializer and Deserializer classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cpplint warnings. Created 5 years, 10 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 | « chromeos/dbus/fake_easy_unlock_client.cc ('k') | chromeos/tools/onc_validator/onc_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_test_utils.cc
diff --git a/chromeos/network/onc/onc_test_utils.cc b/chromeos/network/onc/onc_test_utils.cc
index 56e5bc6302d7fab51049072a464874f2e4b95596..522a9ed338a8a0bf534d3574b645d37d3b39b53c 100644
--- a/chromeos/network/onc/onc_test_utils.cc
+++ b/chromeos/network/onc/onc_test_utils.cc
@@ -48,11 +48,11 @@ scoped_ptr<base::DictionaryValue> ReadTestDictionary(
return make_scoped_ptr(dict);
}
- JSONFileValueSerializer serializer(path);
- serializer.set_allow_trailing_comma(true);
+ JSONFileValueDeserializer deserializer(path);
+ deserializer.set_allow_trailing_comma(true);
std::string error_message;
- base::Value* content = serializer.Deserialize(NULL, &error_message);
+ base::Value* content = deserializer.Deserialize(NULL, &error_message);
CHECK(content != NULL) << "Couldn't json-deserialize file '"
<< filename << "': " << error_message;
« no previous file with comments | « chromeos/dbus/fake_easy_unlock_client.cc ('k') | chromeos/tools/onc_validator/onc_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698