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
12
13// Should not crash.
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}
Extension * GetExtension() const
TEST_F(CPDFXFAContextEmbedderTest, HasHeap)