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 |