Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
txt
tests
font_collection_tests.cc
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Google, Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#include "gtest/gtest.h"
18
19
#include <sstream>
20
21
#include "
txt/font_collection.h
"
22
23
namespace
txt
{
24
namespace
testing {
25
26
class
FontCollectionTests
:
public
::testing::Test {
27
public
:
28
FontCollectionTests
() {}
29
30
void
SetUp
()
override
{}
31
};
32
33
TEST_F
(
FontCollectionTests
, SettingUpDefaultFontManagerClearsCache) {
34
FontCollection
font_collection;
35
sk_sp<skia::textlayout::FontCollection>
sk_font_collection =
36
font_collection.CreateSktFontCollection();
37
ASSERT_EQ(sk_font_collection->
getFallbackManager
().
get
(),
nullptr
);
38
font_collection.
SetupDefaultFontManager
(0);
39
sk_font_collection = font_collection.CreateSktFontCollection();
40
ASSERT_NE(sk_font_collection->
getFallbackManager
().
get
(),
nullptr
);
41
}
42
}
// namespace testing
43
}
// namespace txt
flutter::FontCollection
Definition:
font_collection.h:19
flutter::FontCollection::SetupDefaultFontManager
void SetupDefaultFontManager(uint32_t font_initialization_data)
Definition:
font_collection.cc:48
sk_sp< skia::textlayout::FontCollection >
sk_sp::get
T * get() const
Definition:
SkRefCnt.h:303
skia::textlayout::FontCollection::getFallbackManager
sk_sp< SkFontMgr > getFallbackManager() const
Definition:
FontCollection.h:34
txt::testing::FontCollectionTests
Definition:
font_collection_tests.cc:26
txt::testing::FontCollectionTests::SetUp
void SetUp() override
Definition:
font_collection_tests.cc:30
txt::testing::FontCollectionTests::FontCollectionTests
FontCollectionTests()
Definition:
font_collection_tests.cc:28
txt::testing::TEST_F
TEST_F(FontCollectionTests, SettingUpDefaultFontManagerClearsCache)
Definition:
font_collection_tests.cc:33
txt
Definition:
paragraph_builder_skia.cc:27
font_collection.h
Generated on Sun Jun 23 2024 21:56:53 for Flutter Engine by
1.9.4