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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util_unittest.cc

Issue 2914433002: arc: Use the MIME type returned by the container to handle content URLs (Closed)
Patch Set: Comment drop. Created 3 years, 6 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/browser/chromeos/arc/fileapi/arc_content_file_system_url_util_unittest.cc
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util_unittest.cc b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util_unittest.cc
index e77f3cf9c741a480b88b07c9146e4e47827e7dca..e58c0f567a698c867cc2f5131919b605fba19f2a 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util_unittest.cc
+++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util_unittest.cc
@@ -78,4 +78,13 @@ TEST(ArcContentFileSystemUrlUtilTest, FileSystemUrlToArcUrl) {
EXPECT_EQ(arc_url, FileSystemUrlToArcUrl(file_system_url));
}
+TEST(ArcContentFileSystemUrlUtilTest, PathToArcUrl) {
+ GURL arc_url("content://org.chromium.foo/bar/baz");
+
+ base::FilePath path =
+ base::FilePath(kContentFileSystemMountPointPath)
+ .Append(base::FilePath::FromUTF8Unsafe(EscapeArcUrl(arc_url)));
+ EXPECT_EQ(arc_url, PathToArcUrl(path));
+}
+
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698