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

Side by Side Diff: testing/embedder_test.h

Issue 955513009: Pull in gmock for standalone pdfium builds. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: First (empty) mock test. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 PDFium Authors. All rights reserved. 1 // Copyright (c) 2015 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TESTING_EMBEDDER_TEST_H_ 5 #ifndef TESTING_EMBEDDER_TEST_H_
6 #define TESTING_EMBEDDER_TEST_H_ 6 #define TESTING_EMBEDDER_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "../core/include/fxcrt/fx_system.h" 10 #include "../core/include/fxcrt/fx_system.h"
11 #include "../fpdfsdk/include/fpdf_dataavail.h" 11 #include "../fpdfsdk/include/fpdf_dataavail.h"
12 #include "../fpdfsdk/include/fpdf_ext.h" 12 #include "../fpdfsdk/include/fpdf_ext.h"
13 #include "../fpdfsdk/include/fpdfformfill.h" 13 #include "../fpdfsdk/include/fpdfformfill.h"
14 #include "../fpdfsdk/include/fpdfview.h" 14 #include "../fpdfsdk/include/fpdfview.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "testing/gmock/include/gmock/gmock.h"
Lei Zhang 2015/02/26 01:13:42 Is this needed in the header?
Tom Sepez 2015/02/27 18:39:20 Moved to .cpp file.
16 #include "v8/include/v8.h" 17 #include "v8/include/v8.h"
17 18
18 class TestLoader; 19 class TestLoader;
19 20
20 // This class is used to load a PDF document, and then run programatic 21 // This class is used to load a PDF document, and then run programatic
21 // API tests against it. 22 // API tests against it.
22 class EmbedderTest : public ::testing::Test, 23 class EmbedderTest : public ::testing::Test,
23 public UNSUPPORT_INFO, 24 public UNSUPPORT_INFO,
24 public IPDF_JSPLATFORM, 25 public IPDF_JSPLATFORM,
25 public FPDF_FORMFILLINFO { 26 public FPDF_FORMFILLINFO {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 char* file_contents_; 89 char* file_contents_;
89 90
90 private: 91 private:
91 static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type); 92 static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type);
92 static int AlertTrampoline(IPDF_JSPLATFORM* plaform, FPDF_WIDESTRING message, 93 static int AlertTrampoline(IPDF_JSPLATFORM* plaform, FPDF_WIDESTRING message,
93 FPDF_WIDESTRING title, int type, int icon); 94 FPDF_WIDESTRING title, int type, int icon);
94 }; 95 };
95 96
96 #endif // TESTING_EMBEDDER_TEST_H_ 97 #endif // TESTING_EMBEDDER_TEST_H_
97 98
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698