Index: core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp b/core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp |
index 67287dfd5a445962578f4ce43ebf3f8fdbccf88e..db3ccf5e3dc9b2908b1d60e48b30e5f023791633 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp |
@@ -54,7 +54,7 @@ TEST(SimpleParserTest, GetWord) { |
CFX_ByteStringC word = parser.GetWord(); |
EXPECT_EQ(std::string(reinterpret_cast<const char*>(data.expected), |
data.expected_size), |
- std::string(word.GetCStr(), word.GetLength())) |
+ std::string(word.c_str(), word.GetLength())) |
<< " for case " << i; |
} |
} |