diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-01-23 15:22:57 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-01-23 15:22:57 -0800 |
commit | fa370ac5cf6472f0ec0c9ecf62d1f9dd20ebfa42 (patch) | |
tree | f4e154f0e511c6fed4c6a11e3cb4207a31df2147 /fpdfsdk/src/fpdf_dataavail_unittest.cpp | |
parent | e0bbe4aac90e56950f28e322c3d6192c35af5ea0 (diff) | |
download | pdfium-fa370ac5cf6472f0ec0c9ecf62d1f9dd20ebfa42.tar.xz |
Fix test naming in previous commit.
The embeddertests binary should have source files ending in
_embeddertest, not _unittest.
TBR=bo_xu@foxitsoftware.com
Review URL: https://codereview.chromium.org/871093004
Diffstat (limited to 'fpdfsdk/src/fpdf_dataavail_unittest.cpp')
-rw-r--r-- | fpdfsdk/src/fpdf_dataavail_unittest.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/fpdfsdk/src/fpdf_dataavail_unittest.cpp b/fpdfsdk/src/fpdf_dataavail_unittest.cpp deleted file mode 100644 index 6081fa52ac..0000000000 --- a/fpdfsdk/src/fpdf_dataavail_unittest.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2015 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "../../testing/embedder_test.h" -#include "../../fpdfsdk/include/fpdfview.h" -#include "../../fpdfsdk/include/fpdfdoc.h" -#include "testing/gtest/include/gtest/gtest.h" - -class FPDFDataAvailEmbeddertest : public EmbedderTest { -}; - -TEST_F(FPDFDataAvailEmbeddertest, TrailerUnterminated) { - // Document must open without crashing but is too malformed to be available. - EXPECT_TRUE(OpenDocument("testing/resources/trailer_unterminated.pdf")); - EXPECT_FALSE(FPDFAvail_IsDocAvail(avail_, &hints_)); -} - -TEST_F(FPDFDataAvailEmbeddertest, TrailerAsHexstring) { - // Document must open without crashing but is too malformed to be available. - EXPECT_TRUE(OpenDocument("testing/resources/trailer_as_hexstring.pdf")); - EXPECT_FALSE(FPDFAvail_IsDocAvail(avail_, &hints_)); -} |