summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp')
-rw-r--r--core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp b/core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp
index 30d30a433d..f8c9863c32 100644
--- a/core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp
+++ b/core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp
@@ -79,8 +79,8 @@ TEST(fpdf_parser_decode, HexDecode) {
TEST(fpdf_parser_decode, EncodeText) {
struct EncodeTestData {
- const FX_WCHAR* input;
- const FX_CHAR* expected_output;
+ const wchar_t* input;
+ const char* expected_output;
FX_STRSIZE expected_length;
} test_data[] = {
// Empty src string.
@@ -102,7 +102,7 @@ TEST(fpdf_parser_decode, EncodeText) {
CFX_ByteString output = PDF_EncodeText(test_case.input);
ASSERT_EQ(test_case.expected_length, output.GetLength()) << "for case "
<< i;
- const FX_CHAR* str_ptr = output.c_str();
+ const char* str_ptr = output.c_str();
for (FX_STRSIZE j = 0; j < test_case.expected_length; ++j) {
EXPECT_EQ(test_case.expected_output[j], str_ptr[j]) << "for case " << i
<< " char " << j;