OLD | NEW |
1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 PDFium 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 "core/include/fxcrt/fx_bidi.h" |
5 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
6 #include "../../include/fxcrt/fx_bidi.h" | |
7 | 7 |
8 namespace { | 8 namespace { |
9 | 9 |
10 const FX_WCHAR kNeutralChar = 32; | 10 const FX_WCHAR kNeutralChar = 32; |
11 const FX_WCHAR kLeftChar = 65; | 11 const FX_WCHAR kLeftChar = 65; |
12 const FX_WCHAR kRightChar = 1424; | 12 const FX_WCHAR kRightChar = 1424; |
13 | 13 |
14 } // namespace | 14 } // namespace |
15 | 15 |
16 TEST(fxcrt, BidiCharEmpty) { | 16 TEST(fxcrt, BidiCharEmpty) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 EXPECT_EQ(4, count); | 127 EXPECT_EQ(4, count); |
128 | 128 |
129 EXPECT_TRUE(bidi.EndChar()); | 129 EXPECT_TRUE(bidi.EndChar()); |
130 dir = bidi.GetBidiInfo(&start, &count); | 130 dir = bidi.GetBidiInfo(&start, &count); |
131 EXPECT_EQ(CFX_BidiChar::LEFT, dir); | 131 EXPECT_EQ(CFX_BidiChar::LEFT, dir); |
132 EXPECT_EQ(7, start); | 132 EXPECT_EQ(7, start); |
133 EXPECT_EQ(1, count); | 133 EXPECT_EQ(1, count); |
134 | 134 |
135 EXPECT_FALSE(bidi.EndChar()); | 135 EXPECT_FALSE(bidi.EndChar()); |
136 } | 136 } |
OLD | NEW |