summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_bidi_unittest.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-13 16:43:37 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-14 14:14:51 +0000
commit812e96c2b4c5908a1979da5e27cdcecda0d1dfc9 (patch)
treef0b0607f6b757eb22237527215094bd87b5d03ba /core/fxcrt/fx_bidi_unittest.cpp
parent893822aa5b6254591f8e80fbffcbb4fa6ad849aa (diff)
downloadpdfium-812e96c2b4c5908a1979da5e27cdcecda0d1dfc9.tar.xz
Replace FX_CHAR and FX_WCHAR with underlying types.
Change-Id: I96e0a20d66b9184d22f64d8e4ce0dadd5a78c1e8 Reviewed-on: https://pdfium-review.googlesource.com/2967 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_bidi_unittest.cpp')
-rw-r--r--core/fxcrt/fx_bidi_unittest.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/core/fxcrt/fx_bidi_unittest.cpp b/core/fxcrt/fx_bidi_unittest.cpp
index 2c1996be46..ad598a6741 100644
--- a/core/fxcrt/fx_bidi_unittest.cpp
+++ b/core/fxcrt/fx_bidi_unittest.cpp
@@ -7,9 +7,9 @@
namespace {
-const FX_WCHAR kNeutralChar = 32;
-const FX_WCHAR kLeftChar = 65;
-const FX_WCHAR kRightChar = 1424;
+const wchar_t kNeutralChar = 32;
+const wchar_t kLeftChar = 65;
+const wchar_t kRightChar = 1424;
} // namespace
@@ -126,7 +126,7 @@ TEST(fxcrt, BidiStringEmpty) {
TEST(fxcrt, BidiStringAllNeutral) {
{
- const FX_WCHAR str[] = {kNeutralChar, 0};
+ const wchar_t str[] = {kNeutralChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::LEFT, bidi.OverallDirection());
@@ -139,7 +139,7 @@ TEST(fxcrt, BidiStringAllNeutral) {
EXPECT_TRUE(it == bidi.end());
}
{
- const FX_WCHAR str[] = {kNeutralChar, kNeutralChar, kNeutralChar, 0};
+ const wchar_t str[] = {kNeutralChar, kNeutralChar, kNeutralChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::LEFT, bidi.OverallDirection());
@@ -155,7 +155,7 @@ TEST(fxcrt, BidiStringAllNeutral) {
TEST(fxcrt, BidiStringAllLeft) {
{
- const FX_WCHAR str[] = {kLeftChar, 0};
+ const wchar_t str[] = {kLeftChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::LEFT, bidi.OverallDirection());
@@ -176,7 +176,7 @@ TEST(fxcrt, BidiStringAllLeft) {
EXPECT_TRUE(it == bidi.end());
}
{
- const FX_WCHAR str[] = {kLeftChar, kLeftChar, kLeftChar, 0};
+ const wchar_t str[] = {kLeftChar, kLeftChar, kLeftChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::LEFT, bidi.OverallDirection());
@@ -200,7 +200,7 @@ TEST(fxcrt, BidiStringAllLeft) {
TEST(fxcrt, BidiStringAllRight) {
{
- const FX_WCHAR str[] = {kRightChar, 0};
+ const wchar_t str[] = {kRightChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::RIGHT, bidi.OverallDirection());
@@ -221,7 +221,7 @@ TEST(fxcrt, BidiStringAllRight) {
EXPECT_TRUE(it == bidi.end());
}
{
- const FX_WCHAR str[] = {kRightChar, kRightChar, kRightChar, 0};
+ const wchar_t str[] = {kRightChar, kRightChar, kRightChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::RIGHT, bidi.OverallDirection());
@@ -244,7 +244,7 @@ TEST(fxcrt, BidiStringAllRight) {
}
TEST(fxcrt, BidiStringLeftNeutralLeftRight) {
- const FX_WCHAR str[] = {kLeftChar, kNeutralChar, kLeftChar, kRightChar, 0};
+ const wchar_t str[] = {kLeftChar, kNeutralChar, kLeftChar, kRightChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::LEFT, bidi.OverallDirection());
@@ -284,7 +284,7 @@ TEST(fxcrt, BidiStringLeftNeutralLeftRight) {
}
TEST(fxcrt, BidiStringRightNeutralLeftRight) {
- const FX_WCHAR str[] = {kRightChar, kNeutralChar, kLeftChar, kRightChar, 0};
+ const wchar_t str[] = {kRightChar, kNeutralChar, kLeftChar, kRightChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::RIGHT, bidi.OverallDirection());
@@ -324,7 +324,7 @@ TEST(fxcrt, BidiStringRightNeutralLeftRight) {
}
TEST(fxcrt, BidiStringReverse) {
- const FX_WCHAR str[] = {kLeftChar, kNeutralChar, kRightChar, kLeftChar, 0};
+ const wchar_t str[] = {kLeftChar, kNeutralChar, kRightChar, kLeftChar, 0};
CFX_BidiString bidi(str);
EXPECT_EQ(CFX_BidiChar::LEFT, bidi.OverallDirection());
bidi.SetOverallDirectionRight();