mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 01:55:45 -04:00
System: Improve screenshot naming
This commit is contained in:
@ -243,6 +243,16 @@ TEST(Path, SanitizeFileName)
|
||||
ASSERT_EQ(Path::SanitizeFileName("foo/bar", false), "foo/bar");
|
||||
}
|
||||
|
||||
TEST(Path, RemoveLengthLimits)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
ASSERT_EQ(Path::RemoveLengthLimits("C:\\foo"), "\\\\?\\C:\\foo");
|
||||
ASSERT_EQ(Path::RemoveLengthLimits("\\\\foo\\bar\\baz"), "\\\\?\\\\\\foo\\bar\\baz");
|
||||
#else
|
||||
ASSERT_EQ(Path::RemoveLengthLimits("/foo/bar/baz"), "/foo/bar/baz");
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
// Relies on presence of files.
|
||||
|
Reference in New Issue
Block a user