Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: base/i18n/file_util_icu_unittest.cc

Issue 12282019: Disable "using base::FilePath" on Linux since it now compiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/file_version_info_mac.mm ('k') | base/native_library_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } kNormalizeFileNameEncodingTestCases[] = { 89 } kNormalizeFileNameEncodingTestCases[] = {
90 { "foo_na\xcc\x88me.foo", "foo_n\xc3\xa4me.foo"}, 90 { "foo_na\xcc\x88me.foo", "foo_n\xc3\xa4me.foo"},
91 { "foo_dir_na\xcc\x88me/foo_na\xcc\x88me.foo", 91 { "foo_dir_na\xcc\x88me/foo_na\xcc\x88me.foo",
92 "foo_dir_na\xcc\x88me/foo_n\xc3\xa4me.foo"}, 92 "foo_dir_na\xcc\x88me/foo_n\xc3\xa4me.foo"},
93 { "", ""}, 93 { "", ""},
94 { "foo_dir_na\xcc\x88me/", "foo_dir_n\xc3\xa4me"} 94 { "foo_dir_na\xcc\x88me/", "foo_dir_n\xc3\xa4me"}
95 }; 95 };
96 96
97 TEST_F(FileUtilICUTest, NormalizeFileNameEncoding) { 97 TEST_F(FileUtilICUTest, NormalizeFileNameEncoding) {
98 for (size_t i = 0; i < arraysize(kNormalizeFileNameEncodingTestCases); i++) { 98 for (size_t i = 0; i < arraysize(kNormalizeFileNameEncodingTestCases); i++) {
99 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(FilePath(kNormalizeFileNameEncodingTestCases[i].normalized_path), 101 EXPECT_EQ(
102 path); 102 base::FilePath(kNormalizeFileNameEncodingTestCases[i].normalized_path),
103 path);
103 } 104 }
104 } 105 }
105 106
106 #endif 107 #endif
OLDNEW
« no previous file with comments | « base/file_version_info_mac.mm ('k') | base/native_library_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698