| Index: core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp
|
| diff --git a/core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp b/core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp
|
| index a23c0ed64e6855b10294c994c875386fb9e0a8e6..f94b431c82f721c4ac349c392bac6bd22b612a24 100644
|
| --- a/core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp
|
| +++ b/core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp
|
| @@ -16,7 +16,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Empty string.
|
| uint8_t data[] = "";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 0, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 0, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -27,7 +27,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Blank string.
|
| uint8_t data[] = " ";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 2, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 2, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -38,7 +38,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Skips unknown characters.
|
| uint8_t data[] = "z12b";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 4, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 4, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -49,7 +49,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Skips unknown characters.
|
| uint8_t data[] = "*<&*#$^&@1";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 10, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 10, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -60,7 +60,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Skips unknown characters.
|
| uint8_t data[] = "\x80zab";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 4, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 4, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -71,7 +71,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Skips unknown characters.
|
| uint8_t data[] = "\xffzab";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 4, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 4, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -82,7 +82,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Regular conversion.
|
| uint8_t data[] = "1A2b>abcd";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 9, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 9, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -93,7 +93,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Position out of bounds.
|
| uint8_t data[] = "12ab>";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 5, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 5, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -117,7 +117,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Missing ending >.
|
| uint8_t data[] = "1A2b";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 4, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 4, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -128,7 +128,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Missing ending >.
|
| uint8_t data[] = "12abz";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 5, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 5, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -139,7 +139,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Uneven number of bytes.
|
| uint8_t data[] = "1A2>asdf";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 8, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 8, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -150,7 +150,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Uneven number of bytes.
|
| uint8_t data[] = "1A2zasdf";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 8, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 8, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
| @@ -161,7 +161,7 @@ TEST(cpdf_syntax_parser, ReadHexString) {
|
| {
|
| // Just ending character.
|
| uint8_t data[] = ">";
|
| - ScopedFileStream stream(FX_CreateMemoryStream(data, 1, false));
|
| + ScopedFileStream stream(IFX_MemoryStream::Create(data, 1, false));
|
|
|
| CPDF_SyntaxParser parser;
|
| parser.InitParser(stream.get(), 0);
|
|
|