From 2b797295d6851b3189bcb38c5994074f36453865 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Thu, 6 Apr 2017 14:45:39 -0700 Subject: Fix unit tests to initialize PartitionAlloc. Tests need to be subclasses of FPDF_Test. BUG=pdfium:700 Change-Id: I317ec2c49567e58cb57c6222e387574226f594b3 Reviewed-on: https://pdfium-review.googlesource.com/3890 Reviewed-by: Tom Sepez Commit-Queue: Chris Palmer --- xfa/fxfa/parser/xfa_utils_unittest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/parser') diff --git a/xfa/fxfa/parser/xfa_utils_unittest.cpp b/xfa/fxfa/parser/xfa_utils_unittest.cpp index c39ed69306..e4dd09419e 100644 --- a/xfa/fxfa/parser/xfa_utils_unittest.cpp +++ b/xfa/fxfa/parser/xfa_utils_unittest.cpp @@ -8,9 +8,12 @@ #include #include "testing/gtest/include/gtest/gtest.h" +#include "testing/test_support.h" #include "third_party/base/ptr_util.h" -TEST(XfaUtilsImp, XFA_MapRotation) { +class XfaUtilsImpTest : public pdfium::FPDF_Test {}; + +TEST_F(XfaUtilsImpTest, XFA_MapRotation) { struct TestCase { int input; int expected_output; @@ -26,7 +29,7 @@ TEST(XfaUtilsImp, XFA_MapRotation) { } } -class XFANodeIteratorTest : public testing::Test { +class XFANodeIteratorTest : public pdfium::FPDF_Test { public: class Node { public: -- cgit v1.2.3