summaryrefslogtreecommitdiff
path: root/testing/embedder_test.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-27 12:56:25 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-27 12:56:25 -0800
commit3d25502adc5ae37d1c3c74d367f16f770c465109 (patch)
treeba894fdc7bba7e097864898fa2f80318c9b17638 /testing/embedder_test.cpp
parentec61a859344dc6d2a60e4cbcd1555e6d317f2add (diff)
downloadpdfium-3d25502adc5ae37d1c3c74d367f16f770c465109.tar.xz
Pull in gmock for standalone pdfium builds.
For chromium checkouts, the top-level gmock is used instead. Verify build with a simple test that ensures neither mock method is fired. R=thestig@chromium.org Review URL: https://codereview.chromium.org/955513009
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r--testing/embedder_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index fc6b4dbc80..e8d5a09f65 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -17,6 +17,7 @@
#include "../fpdfsdk/include/fpdftext.h"
#include "../fpdfsdk/include/fpdfview.h"
#include "../core/include/fxcrt/fx_system.h"
+#include "testing/gmock/include/gmock/gmock.h"
#include "v8/include/v8.h"
#ifdef _WIN32
@@ -340,5 +341,6 @@ int EmbedderTest::AlertTrampoline(IPDF_JSPLATFORM* platform,
int main(int argc, char** argv) {
g_exe_path_ = argv[0];
testing::InitGoogleTest(&argc, argv);
+ testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();
}