Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: testing/embedder_test.cpp

Issue 1652533002: Add tests for CBA_AnnotIterator. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: testing/embedder_test.cpp
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index cb9068564aded872b770e411198373f62e0c7098..5009398a592be6a6f456b5d87568e11d4894f570 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -92,6 +92,12 @@ void EmbedderTest::TearDown() {
delete loader_;
}
+CPDFSDK_Document* EmbedderTest::GetSDKDocument() const {
+ CPDFDoc_Environment* pEnv =
+ reinterpret_cast<CPDFDoc_Environment*>(form_handle_);
Lei Zhang 2016/01/29 23:39:23 Can we just expose FormHandleToSDKDoc() and use th
Tom Sepez 2016/01/29 23:55:48 Done.
+ return pEnv ? pEnv->GetSDKDocument() : nullptr;
+}
+
bool EmbedderTest::CreateEmptyDocument() {
document_ = FPDF_CreateNewDocument();
if (!document_)

Powered by Google App Engine
This is Rietveld 408576698