summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_font/font_int.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-11-02 16:15:25 -0500
committerDan Sinclair <dsinclair@chromium.org>2015-11-02 16:15:25 -0500
commitafca65ac019d2ad4cb8ac8f585809cc1a519ac2b (patch)
tree208ef74541633ea9e00fc6656195acc8b66a17e4 /core/src/fpdfapi/fpdf_font/font_int.h
parente948a4ee08b78e27da37bc12244fa1b66d927dc7 (diff)
downloadpdfium-afca65ac019d2ad4cb8ac8f585809cc1a519ac2b.tar.xz
Add tests for CMap_GetCode and CMap_GetCodeRange.
This CL adds tests for the CMap_GetCode and CMap_GetCodeRange methods. To do so, it moves the methods to be static private members of CPDF_CMapParser and makes the test class a friend. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1414013005 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_font/font_int.h')
-rw-r--r--core/src/fpdfapi/fpdf_font/font_int.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/fpdfapi/fpdf_font/font_int.h b/core/src/fpdfapi/fpdf_font/font_int.h
index 559027b283..c7a00dccc9 100644
--- a/core/src/fpdfapi/fpdf_font/font_int.h
+++ b/core/src/fpdfapi/fpdf_font/font_int.h
@@ -77,6 +77,14 @@ class CPDF_CMapParser {
CFX_BinaryBuf m_AddMaps;
private:
+ friend class fpdf_font_cid_CMap_GetCode_Test;
+ friend class fpdf_font_cid_CMap_GetCodeRange_Test;
+
+ static FX_DWORD CMap_GetCode(const CFX_ByteStringC& word);
+ static bool CMap_GetCodeRange(CMap_CodeRange& range,
+ const CFX_ByteStringC& first,
+ const CFX_ByteStringC& second);
+
CPDF_CMap* m_pCMap;
int m_Status;
int m_CodeSeq;