Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdfxfa_context_embeddertest.cpp
Go to the documentation of this file.
1
// Copyright 2020 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#
include
"fpdfsdk/fpdfxfa/cpdfxfa_context.h"
6
7
#
include
"fpdfsdk/cpdfsdk_helpers.h"
8
#
include
"testing/gtest/include/gtest/gtest.h"
9
#
include
"testing/xfa_js_embedder_test.h"
10
11
class
CPDFXFAContextEmbedderTest
:
public
XFAJSEmbedderTest
{};
12
13
// Should not crash.
14
TEST_F
(
CPDFXFAContextEmbedderTest
,
HasHeap
) {
15
ASSERT_TRUE(OpenDocument(
"simple_xfa.pdf"
));
16
17
CPDF_Document
* pDocument = CPDFDocumentFromFPDFDocument(document());
18
auto
* pContext =
static_cast
<CPDFXFA_Context*>(pDocument
->
GetExtension
(
)
);
19
EXPECT_TRUE(pContext->GetGCHeap());
20
}
CPDFXFAContextEmbedderTest
Definition
cpdfxfa_context_embeddertest.cpp:11
CPDF_Document
Definition
cpdf_document.h:29
CPDF_Document::GetExtension
Extension * GetExtension() const
Definition
cpdf_document.h:91
XFAJSEmbedderTest
Definition
xfa_js_embedder_test.h:19
TEST_F
TEST_F(CPDFXFAContextEmbedderTest, HasHeap)
Definition
cpdfxfa_context_embeddertest.cpp:14
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fpdfsdk
fpdfxfa
cpdfxfa_context_embeddertest.cpp
Generated on Wed Nov 13 2024 01:01:10 for Qt by
1.12.0