summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout/fgas_rtfbreak.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-06 11:34:03 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-03-06 17:28:06 +0000
commit19fad57424146f0987265c701a58450c43f09008 (patch)
tree597c7c772124176851bacaedda256c24070e068d /xfa/fgas/layout/fgas_rtfbreak.h
parent9a8a965829be736e3d7b0f20f6b1ef21d9af1b6e (diff)
downloadpdfium-19fad57424146f0987265c701a58450c43f09008.tar.xz
Adding tests for CFX_RTFBreak
This CL starts adding tests to the CFX_RTFBreak class. In doing so, the code to append char has been simplified to make it clearer. Change-Id: I5a2c8c114b52e1efa0c41a18670c6542b733baae Reviewed-on: https://pdfium-review.googlesource.com/2900 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fgas/layout/fgas_rtfbreak.h')
-rw-r--r--xfa/fgas/layout/fgas_rtfbreak.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xfa/fgas/layout/fgas_rtfbreak.h b/xfa/fgas/layout/fgas_rtfbreak.h
index 4d999ec682..2dfc0248a1 100644
--- a/xfa/fgas/layout/fgas_rtfbreak.h
+++ b/xfa/fgas/layout/fgas_rtfbreak.h
@@ -169,6 +169,9 @@ class CFX_RTFBreak {
bool bCharCode) const;
CFX_RTFBreakType AppendChar(FX_WCHAR wch);
+
+ CFX_RTFLine* GetCurrentLineForTesting() const { return m_pCurLine; }
+
CFX_RTFBreakType AppendChar_Combination(CFX_RTFChar* pCurChar);
CFX_RTFBreakType AppendChar_Tab(CFX_RTFChar* pCurChar);
CFX_RTFBreakType AppendChar_Control(CFX_RTFChar* pCurChar);