blob: 3fe34d5d8c02fbeed4027705b4458f8220124366 [file] [log] [blame]
Tom Sepeza310e002015-02-27 13:03:07 -08001// Copyright 2015 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5
6#include "../../fpdfsdk/include/fpdfformfill.h"
7#include "../../testing/embedder_test.h"
8#include "../../testing/embedder_test_mock_delegate.h"
9#include "testing/gmock/include/gmock/gmock.h"
10#include "testing/gtest/include/gtest/gtest.h"
11
12using testing::_;
13using testing::Return;
14
15class FPDFFormFillEmbeddertest : public EmbedderTest {
16};
17
18TEST_F(FPDFFormFillEmbeddertest, FirstTest) {
19 EmbedderTestMockDelegate mock;
20 EXPECT_CALL(mock, Alert(_, _, _, _)).Times(0);
21 EXPECT_CALL(mock, UnsupportedHandler(_)).Times(0);
22 SetDelegate(&mock);
23
24 EXPECT_TRUE(OpenDocument("testing/resources/hello_world.pdf"));
25 FPDF_PAGE page = LoadPage(0);
26 EXPECT_NE(nullptr, page);
27}