diff options
author | Tom Sepez <tsepez@chromium.org> | 2014-12-29 13:56:16 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2014-12-29 13:56:16 -0800 |
commit | 336991da7a3d5682a572c01e0a149b6990d05594 (patch) | |
tree | e6e6613beae3ff78c9e358555b72e495af3bf468 /BUILD.gn | |
parent | 6c06469226a127bbbca103c08d282fe2e711c89d (diff) | |
download | pdfium-336991da7a3d5682a572c01e0a149b6990d05594.tar.xz |
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
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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", + ] +} |