OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/i18n/file_util_icu.h" | 5 #include "base/i18n/file_util_icu.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "testing/platform_test.h" | 10 #include "testing/platform_test.h" |
11 | 11 |
12 // file_util winds up using autoreleased objects on the Mac, so this needs | 12 // file_util winds up using autoreleased objects on the Mac, so this needs |
13 // to be a PlatformTest | 13 // to be a PlatformTest |
14 class FileUtilICUTest : public PlatformTest { | 14 class FileUtilICUTest : public PlatformTest { |
15 }; | 15 }; |
16 | 16 |
17 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 17 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
18 | 18 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 for (size_t i = 0; i < arraysize(kNormalizeFileNameEncodingTestCases); i++) { | 98 for (size_t i = 0; i < arraysize(kNormalizeFileNameEncodingTestCases); i++) { |
99 base::FilePath path(kNormalizeFileNameEncodingTestCases[i].original_path); | 99 base::FilePath path(kNormalizeFileNameEncodingTestCases[i].original_path); |
100 file_util::NormalizeFileNameEncoding(&path); | 100 file_util::NormalizeFileNameEncoding(&path); |
101 EXPECT_EQ( | 101 EXPECT_EQ( |
102 base::FilePath(kNormalizeFileNameEncodingTestCases[i].normalized_path), | 102 base::FilePath(kNormalizeFileNameEncodingTestCases[i].normalized_path), |
103 path); | 103 path); |
104 } | 104 } |
105 } | 105 } |
106 | 106 |
107 #endif | 107 #endif |
OLD | NEW |