summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-28 10:11:24 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-28 15:07:01 +0000
commit574d4408a5174bb410cf4ec3db24283671bcce79 (patch)
tree907e53814373e98780de4eabeb55ca48f8669a29 /fpdfsdk
parent133617c2d2b941e239e9234b1a4e9dc7476a2fa5 (diff)
downloadpdfium-574d4408a5174bb410cf4ec3db24283671bcce79.tar.xz
Add a global font loader in XFA tests
This CL creates a global font loader for use in XFA tests. This is needed because the CFGAS_FontMangaer takes a linearly increasing amount of time to load fonts each time it's loaded. This can get excessively slow for test suites which run a lot of tests. Change-Id: Ie389844b56598ce414f4f761654fa4ed465955fd Reviewed-on: https://pdfium-review.googlesource.com/12090 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdfview_unittest.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/fpdfsdk/fpdfview_unittest.cpp b/fpdfsdk/fpdfview_unittest.cpp
deleted file mode 100644
index 27680b3d4e..0000000000
--- a/fpdfsdk/fpdfview_unittest.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "public/fpdfview.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "testing/test_support.h"
-
-TEST(FPDFView, DoubleInit) {
- FPDF_InitLibrary();
- FPDF_InitLibrary();
- FPDF_DestroyLibrary();
-}
-
-TEST(FPDFView, DoubleDestroy) {
- FPDF_InitLibrary();
- FPDF_DestroyLibrary();
- FPDF_DestroyLibrary();
-}