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

Unified Diff: webkit/fileapi/file_system_dir_url_request_job_unittest.cc

Issue 6903022: Removed wchar_t from Time::FromString (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed unnecessary blankline. 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
diff --git a/webkit/fileapi/file_system_dir_url_request_job_unittest.cc b/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
index a40c6a0845aae09571527d4a6d903622d01a014c..738c64d3c6ec32e6bbd863a8d5bad0dabc738416 100644
--- a/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
+++ b/webkit/fileapi/file_system_dir_url_request_job_unittest.cc
@@ -196,9 +196,9 @@ class FileSystemDirURLRequestJobTest : public testing::Test {
base::Time date;
icu::UnicodeString date_ustr(match.group(5, status));
- std::wstring date_wstr;
- UTF16ToWide(date_ustr.getBuffer(), date_ustr.length(), &date_wstr);
- EXPECT_TRUE(base::Time::FromString(date_wstr.c_str(), &date));
+ std::string date_str;
+ UTF16ToUTF8(date_ustr.getBuffer(), date_ustr.length(), &date_str);
+ EXPECT_TRUE(base::Time::FromString(date_str.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