Chromium Code Reviews| Index: base/file_path_unittest.cc |
| diff --git a/base/file_path_unittest.cc b/base/file_path_unittest.cc |
| index 6eb106be68cde0bb81324c5dd6fee7aac16676c7..5f32621ebbad080b08153640bb8800e915b292f6 100644 |
| --- a/base/file_path_unittest.cc |
| +++ b/base/file_path_unittest.cc |
| @@ -1044,6 +1044,16 @@ TEST_F(FilePathTest, ReferencesParent) { |
| } |
| } |
| +TEST_F(FilePathTest, FromUTF8) { |
| + FilePath path = FilePath::FromUTF8("foo.txt"); |
| + EXPECT_EQ(FPL("foo.txt"), path.value()); |
| +} |
| + |
| +TEST_F(FilePathTest, AsUTF8) { |
| + FilePath path(FPL("foo.txt")); |
| + EXPECT_EQ("foo.txt", path.AsUTF8()); |
|
jungshik at Google
2011/10/31 21:29:03
Would you consider adding some non-trivial cases h
|
| +} |
| + |
| #if defined(FILE_PATH_USES_WIN_SEPARATORS) |
| TEST_F(FilePathTest, NormalizeWindowsPathSeparators) { |
| const struct UnaryTestData cases[] = { |
| @@ -1086,4 +1096,5 @@ TEST_F(FilePathTest, NormalizeWindowsPathSeparators) { |
| "i: " << i << ", input: " << input.value(); |
| } |
| } |
| + |
| #endif |