mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
Path: Add CreateFileURL()
This commit is contained in:
committed by
Connor McLaughlin
parent
b4992856f7
commit
515cbc7b29
@@ -228,6 +228,16 @@ TEST(Path, ChangeFileName)
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST(Path, CreateFileURL)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
ASSERT_EQ(Path::CreateFileURL("C:\\foo\\bar"), "file:///C:/foo/bar");
|
||||
ASSERT_EQ(Path::CreateFileURL("\\\\server\\share\\file.txt"), "file://server/share/file.txt");
|
||||
#else
|
||||
ASSERT_EQ(Path::CreateFileURL("/foo/bar"), "file:///foo/bar");
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
// Relies on presence of files.
|
||||
|
||||
Reference in New Issue
Block a user