From 283a0433b081f88275b2f7e8c04d3c41b9187ca6 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 20 Apr 2017 14:11:21 -0400 Subject: Convert IFX_MemoryStream to CFX_MemoryStream The CFX_MemoryStream is the only implementation of IFX_MemoryStream. This CL removes the interfaces and uses CFX_MemoryStream directly. Change-Id: I2f43fa39e82dafa7673517d214ae15fd2d0df331 Reviewed-on: https://pdfium-review.googlesource.com/4391 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- core/fxcrt/xml/cfx_saxreader_unittest.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'core/fxcrt/xml/cfx_saxreader_unittest.cpp') diff --git a/core/fxcrt/xml/cfx_saxreader_unittest.cpp b/core/fxcrt/xml/cfx_saxreader_unittest.cpp index 7865d0b77c..0bb5e1a066 100644 --- a/core/fxcrt/xml/cfx_saxreader_unittest.cpp +++ b/core/fxcrt/xml/cfx_saxreader_unittest.cpp @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "core/fxcrt/xml/cfx_saxreader.h" +#include "core/fxcrt/cfx_memorystream.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/test_support.h" @@ -50,10 +51,11 @@ class CFX_SAXReaderTest : public pdfium::FPDF_Test { } bool StartParse(char* str) { - return reader_.StartParse(IFX_MemoryStream::Create( - reinterpret_cast(str), strlen(str)), - 0, static_cast(-1), - CFX_SaxParseMode_NotSkipSpace) >= 0; + return reader_.StartParse( + pdfium::MakeRetain( + reinterpret_cast(str), strlen(str), false), + 0, static_cast(-1), + CFX_SaxParseMode_NotSkipSpace) >= 0; } int32_t ContinueParse() { -- cgit v1.2.3