• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015 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 #ifndef TESTING_EMBEDDER_TEST_MOCK_DELEGATE_H_
6 #define TESTING_EMBEDDER_TEST_MOCK_DELEGATE_H_
7 
8 #include "testing/embedder_test.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10 
11 class EmbedderTestMockDelegate : public EmbedderTest::Delegate {
12  public:
13   MOCK_METHOD(void, UnsupportedHandler, (int type));
14   MOCK_METHOD(
15       int,
16       Alert,
17       (FPDF_WIDESTRING message, FPDF_WIDESTRING title, int type, int icon));
18   MOCK_METHOD(int, SetTimer, (int msecs, TimerCallback fn));
19   MOCK_METHOD(void, KillTimer, (int msecs));
20   MOCK_METHOD(void, DoURIAction, (FPDF_BYTESTRING uri));
21   MOCK_METHOD(void,
22               DoGoToAction,
23               (FPDF_FORMFILLINFO * info,
24                int page_index,
25                int zoom_mode,
26                float* pos_array,
27                int array_size));
28   MOCK_METHOD(void,
29               OnFocusChange,
30               (FPDF_FORMFILLINFO * info,
31                FPDF_ANNOTATION annot,
32                int page_index));
33   MOCK_METHOD(void,
34               DoURIActionWithKeyboardModifier,
35               (FPDF_FORMFILLINFO * info, FPDF_BYTESTRING uri, int modifiers));
36 };
37 
38 #endif  // TESTING_EMBEDDER_TEST_MOCK_DELEGATE_H_
39