summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-11 17:02:43 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-11 17:02:43 +0000
commitdbaf3b834c51286d5ef49fd13ba943d926bd9832 (patch)
treebc56cc560a3acc7e25dbef2774f128a93792135f /BUILD.gn
parent1e5ebaaa9c7722d24b2254b32b24de9456702fd5 (diff)
downloadpdfium-dbaf3b834c51286d5ef49fd13ba943d926bd9832.tar.xz
Mark tests as testonly.
Also move testing/pseudo_retainable.h into the right test target. Change-Id: I1073390c2f17f3048e63921238cdd3b71d577769 Reviewed-on: https://pdfium-review.googlesource.com/c/43894 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 3 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index b1293c2439..8a65f06b27 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2867,6 +2867,7 @@ if (pdf_enable_xfa) {
}
test("pdfium_unittests") {
+ testonly = true
sources = [
"core/fdrm/crypto/fx_crypt_unittest.cpp",
"core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp",
@@ -2938,6 +2939,7 @@ test("pdfium_unittests") {
"fpdfsdk/fpdf_catalog_unittest.cpp",
"fpdfsdk/fpdf_doc_unittest.cpp",
"fpdfsdk/fpdf_editimg_unittest.cpp",
+ "testing/pseudo_retainable.h",
"testing/unit_test_main.cpp",
]
deps = [
@@ -3010,6 +3012,7 @@ test("pdfium_unittests") {
}
test("pdfium_embeddertests") {
+ testonly = true
sources = [
"core/fpdfapi/edit/cpdf_creator_embeddertest.cpp",
"core/fpdfapi/page/cpdf_docpagedata_embeddertest.cpp",
@@ -3049,7 +3052,6 @@ test("pdfium_embeddertests") {
"testing/embedder_test_timer_handling_delegate.h",
"testing/fake_file_access.cpp",
"testing/fake_file_access.h",
- "testing/pseudo_retainable.h",
"testing/range_set.cpp",
"testing/range_set.h",
]