From 430ab8363e77c48b2c2435af4d289f85e2be1b96 Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 18 Nov 2016 14:48:21 -0800 Subject: Add unit test for CXFA_FileRead. The FileRead's return convention is being modified at https://codereview.chromium.org/2430743003/, so first provide a test of the old behaviour. Fix some issues with null dictionaries as provided by the CPDF_Stream default ctor along the way. Review-Url: https://codereview.chromium.org/2517513003 --- core/fpdfapi/parser/cpdf_stream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/fpdfapi/parser/cpdf_stream.h') diff --git a/core/fpdfapi/parser/cpdf_stream.h b/core/fpdfapi/parser/cpdf_stream.h index ddf7cc5b69..c4f9aacf2b 100644 --- a/core/fpdfapi/parser/cpdf_stream.h +++ b/core/fpdfapi/parser/cpdf_stream.h @@ -46,6 +46,7 @@ class CPDF_Stream : public CPDF_Object { uint32_t buf_size) const; bool IsMemoryBased() const { return m_bMemoryBased; } + bool HasFilter() const; protected: std::unique_ptr CloneNonCyclic( -- cgit v1.2.3