summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi/fpdf_parser.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-11-03 14:32:34 -0500
committerDan Sinclair <dsinclair@chromium.org>2015-11-03 14:32:34 -0500
commiteed2ee926d92f7cbc55b3e3d62a4a2cfddf0c3fd (patch)
treeb6fc44ef67027d311eea8d9e983200a5faef87d0 /core/include/fpdfapi/fpdf_parser.h
parentdccfe5736818f94f7e084105e6d2ab6d5d3a9941 (diff)
downloadpdfium-eed2ee926d92f7cbc55b3e3d62a4a2cfddf0c3fd.tar.xz
Merge to XFA: Add test for CPDF_SyntaxParser::ReadHexString.
This CL adds tests for the ReadHexString method of the syntax parser. TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1433503002 . (cherry picked from commit 71ad9a0028a183605fba734c48b4756d6caa7754) Review URL: https://codereview.chromium.org/1424923007 .
Diffstat (limited to 'core/include/fpdfapi/fpdf_parser.h')
-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 d87be61ef9..f20ba0e97c 100644
--- a/core/include/fpdfapi/fpdf_parser.h
+++ b/core/include/fpdfapi/fpdf_parser.h
@@ -296,6 +296,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;
@@ -349,8 +353,6 @@ class CPDF_SyntaxParser {
FX_BOOL m_bIsNumber;
FX_FILESIZE m_dwWordPos;
- friend class CPDF_Parser;
- friend class CPDF_DataAvail;
};
#define PDFPARSE_TYPEONLY 1