summaryrefslogtreecommitdiff
path: root/samples/BUILD.gn
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-19 14:03:31 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-19 14:03:31 -0700
commit6d34d056a7188b7ae9800fe3ceb68645e0442879 (patch)
tree44f6f20b8726dfaa76b55a625b8052fade57f486 /samples/BUILD.gn
parentaff4635dad81bc319266d9d84b81552580cd2b65 (diff)
downloadpdfium-6d34d056a7188b7ae9800fe3ceb68645e0442879.tar.xz
Consolidate test support code.
Removes duplication between pdfium_test and pdfium_embeddertest R=thestig@chromium.org Review URL: https://codereview.chromium.org/1416713002 .
Diffstat (limited to 'samples/BUILD.gn')
-rw-r--r--samples/BUILD.gn7
1 files changed, 6 insertions, 1 deletions
diff --git a/samples/BUILD.gn b/samples/BUILD.gn
index 5749de90f1..f3f6bc1a10 100644
--- a/samples/BUILD.gn
+++ b/samples/BUILD.gn
@@ -5,6 +5,7 @@
import("../pdfium.gni")
group("samples") {
+ testonly = true
deps = [
":pdfium_test",
":pdfium_diff",
@@ -25,12 +26,14 @@ config("pdfium_samples_config") {
}
executable("pdfium_test") {
+ testonly = true
sources = [
"image_diff_png.cc",
"pdfium_test.cc",
]
deps = [
- "//third_party/pdfium",
+ "//third_party/pdfium:pdfium",
+ "//third_party/pdfium:test_support",
# Regardless of whether the library ships against system freetype,
# always link this binary against the bundled one for consistency
# of results across platforms.
@@ -50,6 +53,7 @@ executable("pdfium_test") {
}
executable("pdfium_diff") {
+ testonly = true
sources = [
"image_diff.cc",
"image_diff_png.cc",
@@ -67,6 +71,7 @@ executable("pdfium_diff") {
}
static_library("fx_lpng") {
+ testonly = true
sources = [
"fx_lpng/include/fx_png.h",
"fx_lpng/src/fx_png.c",