Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
embedder_test_environment.h
Go to the documentation of this file.
1
// Copyright 2020 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
#
ifndef
TESTING_EMBEDDER_TEST_ENVIRONMENT_H_
6
#
define
TESTING_EMBEDDER_TEST_ENVIRONMENT_H_
7
8
#
include
<
string
>
9
10
#
include
"public/fpdfview.h"
11
#
include
"testing/gtest/include/gtest/gtest.h"
12
#
include
"testing/test_fonts.h"
13
14
class
EmbedderTestEnvironment
:
public
testing
::
Environment
{
15
public
:
16
EmbedderTestEnvironment
();
17
~
EmbedderTestEnvironment
()
override
;
18
19
// Note: GetInstance() does not create one if it does not exist,
20
// so the main program must explicitly add this enviroment.
21
static
EmbedderTestEnvironment
*
GetInstance
();
22
23
// testing::Environment:
24
void
SetUp
()
override
;
25
void
TearDown
()
override
;
26
27
void
AddFlags
(
int
argc,
char
** argv);
28
29
bool
write_pngs
()
const
{
return
write_pngs_; }
30
31
private
:
32
void
AddFlag(
const
std
::string& flag);
33
34
FPDF_RENDERER_TYPE renderer_type_;
35
bool
write_pngs_ =
false
;
36
TestFonts
test_fonts_;
37
};
38
39
#
endif
// TESTING_EMBEDDER_TEST_ENVIRONMENT_H_
EmbedderTestEnvironment
Definition
embedder_test_environment.h:14
EmbedderTestEnvironment::SetUp
void SetUp() override
Definition
embedder_test_environment.cpp:40
EmbedderTestEnvironment::write_pngs
bool write_pngs() const
Definition
embedder_test_environment.h:29
EmbedderTestEnvironment::EmbedderTestEnvironment
EmbedderTestEnvironment()
Definition
embedder_test_environment.cpp:24
EmbedderTestEnvironment::AddFlags
void AddFlags(int argc, char **argv)
Definition
embedder_test_environment.cpp:67
EmbedderTestEnvironment::TearDown
void TearDown() override
Definition
embedder_test_environment.cpp:63
EmbedderTestEnvironment::GetInstance
static EmbedderTestEnvironment * GetInstance()
Definition
embedder_test_environment.cpp:36
EmbedderTestEnvironment::~EmbedderTestEnvironment
~EmbedderTestEnvironment() override
Definition
embedder_test_environment.cpp:30
EmbedderTest
Definition
embedder_test.h:39
EmbedderTest::TearDown
void TearDown() override
Definition
embedder_test.cpp:282
FXGETextEmbedderTest
Definition
fx_ge_text_embeddertest.cpp:10
FXGETextEmbedderTest::TearDown
void TearDown() override
Definition
fx_ge_text_embeddertest.cpp:12
TestFonts
Definition
test_fonts.h:11
TEST_F
TEST_F(FXGETextEmbedderTest, BadItalic)
Definition
fx_ge_text_embeddertest.cpp:23
std
Definition
qfloat16.h:493
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
embedder_test_environment.h
Generated on Thu Nov 14 2024 00:59:54 for Qt by
1.12.0