diff options
author | Chris Palmer <palmer@chromium.org> | 2017-04-06 14:45:39 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-06 23:40:27 +0000 |
commit | 2b797295d6851b3189bcb38c5994074f36453865 (patch) | |
tree | 90f119d1b1bff860e265c13919e19410282b6bda /xfa/fde/css/cfde_cssdeclaration_unittest.cpp | |
parent | 8a24b25ee0b08128b28dfae0ee86b8348a51b40b (diff) | |
download | pdfium-2b797295d6851b3189bcb38c5994074f36453865.tar.xz |
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 <tsepez@chromium.org>
Commit-Queue: Chris Palmer <palmer@chromium.org>
Diffstat (limited to 'xfa/fde/css/cfde_cssdeclaration_unittest.cpp')
-rw-r--r-- | xfa/fde/css/cfde_cssdeclaration_unittest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xfa/fde/css/cfde_cssdeclaration_unittest.cpp b/xfa/fde/css/cfde_cssdeclaration_unittest.cpp index 48a3c72c39..80cd72c4d3 100644 --- a/xfa/fde/css/cfde_cssdeclaration_unittest.cpp +++ b/xfa/fde/css/cfde_cssdeclaration_unittest.cpp @@ -5,8 +5,11 @@ #include "xfa/fde/css/cfde_cssdeclaration.h" #include "testing/gtest/include/gtest/gtest.h" +#include "testing/test_support.h" -TEST(CFDE_CSSDecalration, HexEncodingParsing) { +class CFDE_CSSDecalrationTest : public pdfium::FPDF_Test {}; + +TEST_F(CFDE_CSSDecalrationTest, HexEncodingParsing) { FX_ARGB color; // Length value invalid. @@ -42,7 +45,7 @@ TEST(CFDE_CSSDecalration, HexEncodingParsing) { EXPECT_EQ(60, FXARGB_B(color)); } -TEST(CFDE_CSSDecalration, RGBEncodingParsing) { +TEST_F(CFDE_CSSDecalrationTest, RGBEncodingParsing) { FX_ARGB color; // Invalid input for rgb() syntax. |