1 // Copyright 2018 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "core/fxge/dib/cfx_dibitmap.h" 6 7 #include "testing/gtest/include/gtest/gtest.h" 8 TEST(CFX_DIBitmap,Create)9TEST(CFX_DIBitmap, Create) { 10 auto pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); 11 EXPECT_FALSE(pBitmap->Create(400, 300, FXDIB_Invalid)); 12 13 pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); 14 EXPECT_TRUE(pBitmap->Create(400, 300, FXDIB_1bppRgb)); 15 } 16