Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
fx_ge_text_embeddertest.cpp
Go to the documentation of this file.
1
// Copyright 2016 The PDFium Authors
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
"public/cpp/fpdf_scopers.h"
6
#
include
"testing/embedder_test.h"
7
#
include
"testing/embedder_test_environment.h"
8
#
include
"testing/gtest/include/gtest/gtest.h"
9
10
class
FXGETextEmbedderTest
:
public
EmbedderTest
{
11
public
:
12
void
TearDown
()
override
{
13
EmbedderTest
::
TearDown
();
14
15
// TODO(tsepez): determine how this is changing the environment,
16
// such that FPDFAnnotEmbedderTest.BUG_1206 will diff if run
17
// after this.
18
EmbedderTestEnvironment
::
GetInstance
(
)
->
TearDown
(
)
;
19
EmbedderTestEnvironment
::
GetInstance
(
)
->
SetUp
(
)
;
20
}
21
};
22
23
TEST_F
(
FXGETextEmbedderTest
,
BadItalic
) {
24
// Shouldn't crash.
25
ASSERT_TRUE(OpenDocument(
"bug_601362.pdf"
));
26
FPDF_PAGE page = LoadPage(0);
27
ASSERT_TRUE(page);
28
ScopedFPDFBitmap bitmap = RenderLoadedPage(page);
29
EXPECT_EQ(612, FPDFBitmap_GetWidth(bitmap.get()));
30
EXPECT_EQ(792, FPDFBitmap_GetHeight(bitmap.get()));
31
UnloadPage(page);
32
}
EmbedderTestEnvironment
Definition
embedder_test_environment.h:14
EmbedderTestEnvironment::SetUp
void SetUp() override
Definition
embedder_test_environment.cpp:40
EmbedderTestEnvironment::TearDown
void TearDown() override
Definition
embedder_test_environment.cpp:63
EmbedderTestEnvironment::GetInstance
static EmbedderTestEnvironment * GetInstance()
Definition
embedder_test_environment.cpp:36
EmbedderTest
Definition
embedder_test.h:40
EmbedderTest::TearDown
void TearDown() override
Definition
embedder_test.cpp:284
FXGETextEmbedderTest
Definition
fx_ge_text_embeddertest.cpp:10
FXGETextEmbedderTest::TearDown
void TearDown() override
Definition
fx_ge_text_embeddertest.cpp:12
TEST_F
TEST_F(FXGETextEmbedderTest, BadItalic)
Definition
fx_ge_text_embeddertest.cpp:23
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
fx_ge_text_embeddertest.cpp
Generated on
for Qt by
1.18.0