Fix split_filename_tests on OS X and Unix-like platforms

This commit is contained in:
David Capello 2015-05-11 11:44:56 -03:00
parent 96102e0e8c
commit 5f82aa8f08

View File

@ -9,6 +9,8 @@
#include "app/file/split_filename.h"
#include "base/path.h"
using namespace app;
TEST(SplitFilename, Common)
@ -17,7 +19,7 @@ TEST(SplitFilename, Common)
int width;
EXPECT_EQ(1, split_filename("C:\\test\\a1.png", left, right, width));
EXPECT_EQ("C:\\test\\a", left);
EXPECT_EQ(base::fix_path_separators("C:\\test\\a"), base::fix_path_separators(left));
EXPECT_EQ(".png", right);
EXPECT_EQ(1, width);