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

Unified Diff: chrome/common/json_value_serializer_unittest.cc

Issue 12314090: Add utf_string_conversions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: chrome/common/json_value_serializer_unittest.cc
diff --git a/chrome/common/json_value_serializer_unittest.cc b/chrome/common/json_value_serializer_unittest.cc
index 46f45ab7d44c0be7555bb869589fea7f1f1664a7..39e235955ee326e806ad387e1cd103b5687359ca 100644
--- a/chrome/common/json_value_serializer_unittest.cc
+++ b/chrome/common/json_value_serializer_unittest.cc
@@ -122,7 +122,7 @@ TEST(JSONValueSerializerTest, StringEscape) {
TEST(JSONValueSerializerTest, UnicodeStrings) {
// unicode string json -> escaped ascii text
DictionaryValue root;
- string16 test(WideToUTF16(L"\x7F51\x9875"));
+ string16 test(base::WideToUTF16(L"\x7F51\x9875"));
root.SetString("web", test);
std::string expected = "{\"web\":\"\\u7F51\\u9875\"}";
@@ -146,7 +146,7 @@ TEST(JSONValueSerializerTest, UnicodeStrings) {
TEST(JSONValueSerializerTest, HexStrings) {
// hex string json -> escaped ascii text
DictionaryValue root;
- string16 test(WideToUTF16(L"\x01\x02"));
+ string16 test(base::WideToUTF16(L"\x01\x02"));
root.SetString("test", test);
std::string expected = "{\"test\":\"\\u0001\\u0002\"}";
« no previous file with comments | « chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698