diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-05-17 09:39:04 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-17 16:21:44 +0000 |
commit | c559156da52805513e11b1b2a057001b6fa63f90 (patch) | |
tree | b8dc7114f1c630cbd9a17ce0ac5400e9f2fad77f /xfa/fxfa/fm2js/cxfa_fmparse.h | |
parent | 938f211b94abc259c1363e632f6e8c5cb5ec5b1b (diff) | |
download | pdfium-c559156da52805513e11b1b2a057001b6fa63f90.tar.xz |
Adding CXFA_Parse unittests
This CL adds the beginning of unittests for the CXFA_Parse code.
Change-Id: I06e556f1a35405bc683c536d390071917ee330a6
Reviewed-on: https://pdfium-review.googlesource.com/5556
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmparse.h')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmparse.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmparse.h b/xfa/fxfa/fm2js/cxfa_fmparse.h index 43a4450128..625145e7a2 100644 --- a/xfa/fxfa/fm2js/cxfa_fmparse.h +++ b/xfa/fxfa/fm2js/cxfa_fmparse.h @@ -18,13 +18,14 @@ class CXFA_FMParse { CXFA_FMParse(const CFX_WideStringC& wsFormcalc, CXFA_FMErrorInfo* pErrorInfo); ~CXFA_FMParse(); - void NextToken(); - std::vector<std::unique_ptr<CXFA_FMExpression>> ParseTopExpression(); + std::unique_ptr<CXFA_FMFunctionDefinition> Parse(); private: + void NextToken(); void Check(XFA_FM_TOKEN op); void Error(const wchar_t* msg, ...); bool HasError() const; + std::vector<std::unique_ptr<CXFA_FMExpression>> ParseTopExpression(); std::unique_ptr<CXFA_FMExpression> ParseFunction(); std::unique_ptr<CXFA_FMExpression> ParseExpression(); std::unique_ptr<CXFA_FMExpression> ParseVarExpression(); |