Chromium Code Reviews| 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_) |