From 048afc6aba4848d5296affb4335500f960262580 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 1 May 2018 17:01:54 +0000 Subject: Fix CFX_XML and add unit tests This CL fixes several issues in the CFX_XML class and adds unit tests. Change-Id: I05270690de8f3c45dceb866e17ef899ae6d23389 Reviewed-on: https://pdfium-review.googlesource.com/31753 Commit-Queue: dsinclair Reviewed-by: Ryan Harrison Reviewed-by: Henrique Nakashima --- BUILD.gn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index 19e85f99d9..bd6bf43c25 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -249,6 +249,8 @@ jumbo_static_library("test_support") { sources = [ "testing/fx_string_testhelpers.cpp", "testing/fx_string_testhelpers.h", + "testing/string_write_stream.cpp", + "testing/string_write_stream.h", "testing/test_support.cpp", "testing/test_support.h", "testing/utils/path_service.cpp", @@ -2887,7 +2889,12 @@ test("pdfium_unittests") { "core/fxcrt/unowned_ptr_unittest.cpp", "core/fxcrt/weak_ptr_unittest.cpp", "core/fxcrt/widestring_unittest.cpp", + "core/fxcrt/xml/cfx_xmlchardata_unittest.cpp", + "core/fxcrt/xml/cfx_xmlelement_unittest.cpp", + "core/fxcrt/xml/cfx_xmlinstruction_unittest.cpp", + "core/fxcrt/xml/cfx_xmlnode_unittest.cpp", "core/fxcrt/xml/cfx_xmlparser_unittest.cpp", + "core/fxcrt/xml/cfx_xmltext_unittest.cpp", "core/fxge/dib/cfx_dibitmap_unittest.cpp", "core/fxge/dib/cstretchengine_unittest.cpp", "fpdfsdk/fpdf_catalog_unittest.cpp", -- cgit v1.2.3