diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-02 13:02:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 13:02:28 -0700 |
commit | 521b7508dfe8ab93975eeb9f4ef8068012c4dbd8 (patch) | |
tree | d51fec17bafc8c4ac70a7f80932749551ee6e5ff /fpdfsdk/fpdfdoc_unittest.cpp | |
parent | 25ec646b2c128a6beaa961ec2b2eeb673ed034ca (diff) | |
download | pdfium-521b7508dfe8ab93975eeb9f4ef8068012c4dbd8.tar.xz |
Rename CPDFXFA_Document to CPDFXFA_Context
The CPDFXFA_Document class isn't a document, it contains documents. Renamed
to make the purpose a bit clearer.
Review-Url: https://codereview.chromium.org/2469813004
Diffstat (limited to 'fpdfsdk/fpdfdoc_unittest.cpp')
-rw-r--r-- | fpdfsdk/fpdfdoc_unittest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/fpdfdoc_unittest.cpp b/fpdfsdk/fpdfdoc_unittest.cpp index 7ac8ce62d5..408d2fa0d8 100644 --- a/fpdfsdk/fpdfdoc_unittest.cpp +++ b/fpdfsdk/fpdfdoc_unittest.cpp @@ -19,7 +19,7 @@ #include "third_party/base/ptr_util.h" #ifdef PDF_ENABLE_XFA -#include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" +#include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" #endif // PDF_ENABLE_XFA class CPDF_TestDocument : public CPDF_Document { @@ -31,10 +31,10 @@ class CPDF_TestDocument : public CPDF_Document { }; #ifdef PDF_ENABLE_XFA -class CPDF_TestXFADocument : public CPDFXFA_Document { +class CPDF_TestXFAContext : public CPDFXFA_Context { public: - CPDF_TestXFADocument() - : CPDFXFA_Document(pdfium::MakeUnique<CPDF_TestDocument>()) {} + CPDF_TestXFAContext() + : CPDFXFA_Context(pdfium::MakeUnique<CPDF_TestDocument>()) {} void SetRoot(CPDF_Dictionary* root) { reinterpret_cast<CPDF_TestDocument*>(GetPDFDoc())->SetRoot(root); @@ -42,7 +42,7 @@ class CPDF_TestXFADocument : public CPDFXFA_Document { CPDF_IndirectObjectHolder* GetHolder() { return GetPDFDoc(); } }; -using CPDF_TestPdfDocument = CPDF_TestXFADocument; +using CPDF_TestPdfDocument = CPDF_TestXFAContext; #else // PDF_ENABLE_XFA using CPDF_TestPdfDocument = CPDF_TestDocument; #endif // PDF_ENABLE_XFA |