summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-11-03 14:08:32 -0500
committerDan Sinclair <dsinclair@chromium.org>2015-11-03 14:08:32 -0500
commit71ad9a0028a183605fba734c48b4756d6caa7754 (patch)
treee2131a884716aad7138376f85776be870c113911 /core/include/fpdfapi
parente067f7bab4317704de27917c1befa8f57a0e78d7 (diff)
downloadpdfium-71ad9a0028a183605fba734c48b4756d6caa7754.tar.xz
Add test for CPDF_SyntaxParser::ReadHexString.
This CL adds tests for the ReadHexString method of the syntax parser. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1433503002 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r--core/include/fpdfapi/fpdf_parser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h
index 6fec26d687..b7684e530a 100644
--- a/core/include/fpdfapi/fpdf_parser.h
+++ b/core/include/fpdfapi/fpdf_parser.h
@@ -299,6 +299,10 @@ class CPDF_SyntaxParser {
CFX_ByteString GetNextWord(FX_BOOL& bIsNumber);
protected:
+ friend class CPDF_Parser;
+ friend class CPDF_DataAvail;
+ friend class fpdf_parser_parser_ReadHexString_Test;
+
static const int kParserMaxRecursionDepth = 64;
static int s_CurrentRecursionDepth;
@@ -352,8 +356,6 @@ class CPDF_SyntaxParser {
FX_BOOL m_bIsNumber;
FX_FILESIZE m_dwWordPos;
- friend class CPDF_Parser;
- friend class CPDF_DataAvail;
};
#define PDFPARSE_TYPEONLY 1