summaryrefslogtreecommitdiff
path: root/core/fxge/dib/fx_dib_engine_unittest.cpp
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-04-04 17:47:50 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-04 22:20:42 +0000
commit236ce3ba2f274307db9ed49c595e242cd811716c (patch)
treec155d54f3f917a5ae28047776f8109cd688bf249 /core/fxge/dib/fx_dib_engine_unittest.cpp
parentafd0d1f488ea55da545b3310fd8f22e45522a695 (diff)
downloadpdfium-236ce3ba2f274307db9ed49c595e242cd811716c.tar.xz
Remove dib_int.h
This CL removes dib_int.h by moving CStretchEngine to its own file, other classes to where they are used, and the remaining to fx_dib.h. Change-Id: Ie2d4bb39389737cd631f92b88000ea942608da21 Reviewed-on: https://pdfium-review.googlesource.com/3714 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxge/dib/fx_dib_engine_unittest.cpp')
-rw-r--r--core/fxge/dib/fx_dib_engine_unittest.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/core/fxge/dib/fx_dib_engine_unittest.cpp b/core/fxge/dib/fx_dib_engine_unittest.cpp
deleted file mode 100644
index 86df82442f..0000000000
--- a/core/fxge/dib/fx_dib_engine_unittest.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 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 <memory>
-#include <utility>
-
-#include "core/fpdfapi/parser/cpdf_dictionary.h"
-#include "core/fpdfapi/parser/cpdf_number.h"
-#include "core/fpdfapi/parser/cpdf_stream.h"
-#include "core/fpdfapi/render/cpdf_dibsource.h"
-#include "core/fxcrt/fx_memory.h"
-#include "core/fxge/dib/dib_int.h"
-#include "core/fxge/fx_dib.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "third_party/base/ptr_util.h"
-
-TEST(CStretchEngine, OverflowInCtor) {
- FX_RECT clip_rect;
- std::unique_ptr<CPDF_Dictionary> dict_obj =
- pdfium::MakeUnique<CPDF_Dictionary>();
- dict_obj->SetNewFor<CPDF_Number>("Width", 71000);
- dict_obj->SetNewFor<CPDF_Number>("Height", 12500);
- std::unique_ptr<CPDF_Stream> stream =
- pdfium::MakeUnique<CPDF_Stream>(nullptr, 0, std::move(dict_obj));
- auto dib_source = pdfium::MakeRetain<CPDF_DIBSource>();
- dib_source->Load(nullptr, stream.get());
- CStretchEngine engine(nullptr, FXDIB_8bppRgb, 500, 500, clip_rect, dib_source,
- 0);
- EXPECT_EQ(FXDIB_INTERPOL, engine.m_Flags);
-}