From 336991da7a3d5682a572c01e0a149b6990d05594 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 29 Dec 2014 13:56:16 -0800 Subject: Create pdfium_unittests binary. PDFium has not yet had a unit-tests binary, so introduce one based on the typical gtest framework. Also provide a small initial test fragment for fxcrt strings for instructional purposes. Naturally, doing so kicked out one corner case that isn't handled, we'll fix that in a separate patch. This is a small part of the testing strategy tracking bug. BUG=https://code.google.com/p/pdfium/issues/detail?id=62 R=brucedawson@chromium.org, palmer@chromium.org Review URL: https://codereview.chromium.org/831653002 --- BUILD.gn | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index 2076afb87a..a442e79394 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -791,3 +791,16 @@ static_library("formfiller") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] } + +executable("pdfium_unittests") { + testonly = true + sources = [ + "core/src/fxcrt/fx_basic_bstring_unittest.cpp", + ] + deps = [ + ":pdfium", + "//base", + "//base/test:run_all_unittests", + "//testing/gtest", + ] +} -- cgit v1.2.3