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

Unified Diff: webkit/fileapi/file_system_dir_url_request_job_unittest.cc

Issue 7520021: Revert 94426 - Removed wchat_t from Time::FromString. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « webkit/blob/blob_storage_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_dir_url_request_job_unittest.cc
===================================================================
--- webkit/fileapi/file_system_dir_url_request_job_unittest.cc (revision 94426)
+++ webkit/fileapi/file_system_dir_url_request_job_unittest.cc (working copy)
@@ -196,9 +196,9 @@
base::Time date;
icu::UnicodeString date_ustr(match.group(5, status));
- std::string date_str;
- UTF16ToUTF8(date_ustr.getBuffer(), date_ustr.length(), &date_str);
- EXPECT_TRUE(base::Time::FromString(date_str.c_str(), &date));
+ std::wstring date_wstr;
+ UTF16ToWide(date_ustr.getBuffer(), date_ustr.length(), &date_wstr);
+ EXPECT_TRUE(base::Time::FromString(date_wstr.c_str(), &date));
EXPECT_FALSE(date.is_null());
}
« no previous file with comments | « webkit/blob/blob_storage_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698