summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_dibitmap_unittest.cpp
blob: 67ca7055a3fc2c97d6dd86ccb21be2f8b2f36078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2018 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 "core/fxge/dib/cfx_dibitmap.h"

#include "testing/gtest/include/gtest/gtest.h"

TEST(CFX_DIBitmap, Create) {
  auto pBitmap = pdfium::MakeRetain<CFX_DIBitmap>();
  EXPECT_FALSE(pBitmap->Create(400, 300, FXDIB_Invalid));

  pBitmap = pdfium::MakeRetain<CFX_DIBitmap>();
  EXPECT_TRUE(pBitmap->Create(400, 300, FXDIB_1bppRgb));
}