OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/rtl.h" | 5 #include "base/i18n/rtl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/strings/sys_string_conversions.h" |
11 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
12 #include "base/sys_string_conversions.h" | |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
15 #include "third_party/icu/public/i18n/unicode/usearch.h" | 15 #include "third_party/icu/public/i18n/unicode/usearch.h" |
16 | 16 |
17 #if defined(TOOLKIT_GTK) | 17 #if defined(TOOLKIT_GTK) |
18 #include <gtk/gtk.h> | 18 #include <gtk/gtk.h> |
19 #endif | 19 #endif |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 namespace i18n { | 22 namespace i18n { |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 EXPECT_EQ(test_case, adjusted_string) << " for test case [" << test_case | 298 EXPECT_EQ(test_case, adjusted_string) << " for test case [" << test_case |
299 << "] with IsRTL() == " << IsRTL(); | 299 << "] with IsRTL() == " << IsRTL(); |
300 } | 300 } |
301 } | 301 } |
302 | 302 |
303 EXPECT_EQ(was_rtl, IsRTL()); | 303 EXPECT_EQ(was_rtl, IsRTL()); |
304 } | 304 } |
305 | 305 |
306 } // namespace i18n | 306 } // namespace i18n |
307 } // namespace base | 307 } // namespace base |
OLD | NEW |