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

Side by Side Diff: base/i18n/icu_test_util.h

Issue 1162603004: Restore locales after tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing file Created 5 years, 4 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
« no previous file with comments | « base/i18n/case_conversion_unittest.cc ('k') | base/i18n/number_formatting_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ICU_TEST_UTIL_H_
Mark Mentovai 2015/08/18 14:40:07 Full paths: BASE_ICU_TEST_UTIL_H_.
6 #define ICU_TEST_UTIL_H_
7
8 #include "base/i18n/rtl.h"
9
10 namespace base {
11 namespace i18n {
12
13 class ScopedSetICUDefaultLocale {
14 std::string default_locale;
Mark Mentovai 2015/08/18 14:40:07 Please follow the style guide: public: before priv
15
16 public:
17 ScopedSetICUDefaultLocale(std::string locale)
Mark Mentovai 2015/08/18 14:40:07 Use proper indentation per the style guide.
Mark Mentovai 2015/08/18 14:40:07 Since every caller passes uloc_getDefault(), the c
18 : default_locale(locale) {}
Mark Mentovai 2015/08/18 14:40:07 You should split this up into a .h and a .cc. They
19
20 ~ScopedSetICUDefaultLocale() {
21 i18n::SetICUDefaultLocale(default_locale.data());
22 }
23 };
24
25
26 } // namespace i18n
27 } // namespace base
28 #endif
Mark Mentovai 2015/08/18 14:40:07 Blank line before, and make this #endif // BASE_
OLDNEW
« no previous file with comments | « base/i18n/case_conversion_unittest.cc ('k') | base/i18n/number_formatting_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698