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 <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
10 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
11 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
12 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
13 #include "base/test/icu_test_util.h" | 16 #include "base/test/icu_test_util.h" |
| 17 #include "build/build_config.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "testing/platform_test.h" | 19 #include "testing/platform_test.h" |
16 #include "third_party/icu/source/i18n/unicode/usearch.h" | 20 #include "third_party/icu/source/i18n/unicode/usearch.h" |
17 | 21 |
18 namespace base { | 22 namespace base { |
19 namespace i18n { | 23 namespace i18n { |
20 | 24 |
21 namespace { | 25 namespace { |
22 | 26 |
23 // A test utility function to set the application default text direction. | 27 // A test utility function to set the application default text direction. |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 EXPECT_EQ(test_case, adjusted_string) << " for test case [" << test_case | 462 EXPECT_EQ(test_case, adjusted_string) << " for test case [" << test_case |
459 << "] with IsRTL() == " << IsRTL(); | 463 << "] with IsRTL() == " << IsRTL(); |
460 } | 464 } |
461 } | 465 } |
462 | 466 |
463 EXPECT_EQ(was_rtl, IsRTL()); | 467 EXPECT_EQ(was_rtl, IsRTL()); |
464 } | 468 } |
465 | 469 |
466 } // namespace i18n | 470 } // namespace i18n |
467 } // namespace base | 471 } // namespace base |
OLD | NEW |