diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-06 08:36:26 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-06 08:36:26 +0000 |
commit | 503d0387804c4ddf22a52857407e885ce737dbba (patch) | |
tree | b207cd83412330671e898e7c9063da60338be86f /base/i18n/case_conversion.h | |
parent | cc7b9ccdc9f6eb94a89c0ce6f8e8af341eea4370 (diff) | |
download | chromium_src-503d0387804c4ddf22a52857407e885ce737dbba.zip chromium_src-503d0387804c4ddf22a52857407e885ce737dbba.tar.gz chromium_src-503d0387804c4ddf22a52857407e885ce737dbba.tar.bz2 |
FTP: split the directory listing parser test and re-enable it on TSan bots
The test was disabled on TSan bots becuase it was taking too much time.
This change converts one huge test which parses ~30 directory listings
to ~30 separate test cases.
This change also moves ToLower/ToUpper from ui/base/l10n_util
to base/i18n/case_conversion so that they can be used in net/ftp.
BUG=79022
Review URL: http://codereview.chromium.org/6905027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/i18n/case_conversion.h')
-rw-r--r-- | base/i18n/case_conversion.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/base/i18n/case_conversion.h b/base/i18n/case_conversion.h new file mode 100644 index 0000000..d834ede --- /dev/null +++ b/base/i18n/case_conversion.h @@ -0,0 +1,27 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_I18N_CASE_CONVERSION_ +#define BASE_I18N_CASE_CONVERSION_ +#pragma once + +#include <string> + +#include "base/string16.h" + +namespace base { +namespace i18n { + +// Returns the lower case equivalent of string. Uses ICU's default locale. +string16 ToLower(const string16& string); +std::wstring WideToLower(const std::wstring& string); + +// Returns the upper case equivalent of string. Uses ICU's default locale. +string16 ToUpper(const string16& string); +std::wstring WideToUpper(const std::wstring& string); + +} // namespace i18n +} // namespace base + +#endif // BASE_I18N_CASE_CONVERSION_ |