OLD | NEW |
---|---|
(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_
| |
OLD | NEW |