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

Unified Diff: third_party/WebKit/Source/platform/exported/FilePathConversionTest.cpp

Issue 2586483002: Use explicit WebString <-> string16 conversion methods in storage API files (Closed)
Patch Set: '' Created 4 years 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: third_party/WebKit/Source/platform/exported/FilePathConversionTest.cpp
diff --git a/third_party/WebKit/Source/platform/exported/FilePathConversionTest.cpp b/third_party/WebKit/Source/platform/exported/FilePathConversionTest.cpp
index f8d73de435b8ae7d2690d6b90579b64e951a2362..d04548bc72034cf185e01348bc3ab20b23ff1220 100644
--- a/third_party/WebKit/Source/platform/exported/FilePathConversionTest.cpp
+++ b/third_party/WebKit/Source/platform/exported/FilePathConversionTest.cpp
@@ -40,6 +40,15 @@ TEST(FilePathConversionTest, convert) {
WebStringToFilePath(test16bitString).value());
EXPECT_EQ(pathLatin1.value(), WebStringToFilePath(test16bitLatin1).value());
EXPECT_EQ(pathUTF16.value(), WebStringToFilePath(test16bitUTF16).value());
+
+ EXPECT_STREQ("path",
+ FilePathToWebString(base::FilePath(FILE_PATH_LITERAL("path")))
+ .utf8()
+ .data());
+ EXPECT_STREQ(test8bitLatin1.utf8().data(),
+ FilePathToWebString(pathLatin1).utf8().data());
+ EXPECT_STREQ(test16bitUTF16.utf8().data(),
+ FilePathToWebString(pathUTF16).utf8().data());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698