Lines Matching refs:File
48 ASSERT_EQ(PathnameStripper::File("/dir/file"), "file");
49 ASSERT_EQ(PathnameStripper::File("\\dir\\file"), "file");
50 ASSERT_EQ(PathnameStripper::File("/dir\\file"), "file");
51 ASSERT_EQ(PathnameStripper::File("\\dir/file"), "file");
52 ASSERT_EQ(PathnameStripper::File("dir/file"), "file");
53 ASSERT_EQ(PathnameStripper::File("dir\\file"), "file");
54 ASSERT_EQ(PathnameStripper::File("dir/\\file"), "file");
55 ASSERT_EQ(PathnameStripper::File("dir\\/file"), "file");
56 ASSERT_EQ(PathnameStripper::File("file"), "file");
57 ASSERT_EQ(PathnameStripper::File("dir/"), "");
58 ASSERT_EQ(PathnameStripper::File("dir\\"), "");
59 ASSERT_EQ(PathnameStripper::File("dir/dir/"), "");
60 ASSERT_EQ(PathnameStripper::File("dir\\dir\\"), "");
61 ASSERT_EQ(PathnameStripper::File("dir1/dir2/file"), "file");
62 ASSERT_EQ(PathnameStripper::File("dir1\\dir2\\file"), "file");
63 ASSERT_EQ(PathnameStripper::File("dir1/dir2\\file"), "file");
64 ASSERT_EQ(PathnameStripper::File("dir1\\dir2/file"), "file");
65 ASSERT_EQ(PathnameStripper::File(""), "");
66 ASSERT_EQ(PathnameStripper::File("1"), "1");
67 ASSERT_EQ(PathnameStripper::File("1/2"), "2");
68 ASSERT_EQ(PathnameStripper::File("1\\2"), "2");
69 ASSERT_EQ(PathnameStripper::File("/1/2"), "2");
70 ASSERT_EQ(PathnameStripper::File("\\1\\2"), "2");
71 ASSERT_EQ(PathnameStripper::File("dir//file"), "file");
72 ASSERT_EQ(PathnameStripper::File("dir\\\\file"), "file");
73 ASSERT_EQ(PathnameStripper::File("/dir//file"), "file");
74 ASSERT_EQ(PathnameStripper::File("\\dir\\\\file"), "file");
75 ASSERT_EQ(PathnameStripper::File("c:\\dir\\file"), "file");
76 ASSERT_EQ(PathnameStripper::File("c:\\dir\\file.ext"), "file.ext");