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
cfx_fontmapper_unittest.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include "core/fxge/cfx_fontmapper.h"
#include <memory>
#include <numeric>
#include <utility>
#include "core/fxcrt/fx_codepage.h"
#include "core/fxge/cfx_gemodule.h"
#include "core/fxge/systemfontinfo_iface.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+ Include dependency graph for cfx_fontmapper_unittest.cpp:

Go to the source code of this file.

Classes

class  MockSystemFontInfo
 
class  TestFontMapper
 
class  CFXFontMapperSystemFontInfoTest
 

Functions

 TEST (CFX_FontMapper, IsStandardFontName)
 
 TEST (CFX_FontMapper, MakeTag)
 
 TEST (CFX_FontMapper, AddInstalledFontBasic)
 
 TEST_F (CFXFontMapperSystemFontInfoTest, GetCachedTTCFaceFailToGetData)
 
 TEST_F (CFXFontMapperSystemFontInfoTest, GetCachedFaceFailToGetData)
 

Variables

char g_maybe_changes = '\xff'
 

Function Documentation

◆ TEST() [1/3]

TEST ( CFX_FontMapper ,
AddInstalledFontBasic  )

Definition at line 128 of file cfx_fontmapper_unittest.cpp.

References CFX_FontMapper::CFX_FontMapper(), CFX_FontMapper::AddInstalledFont(), and kANSI.

+ Here is the call graph for this function:

◆ TEST() [2/3]

TEST ( CFX_FontMapper ,
IsStandardFontName  )

Definition at line 92 of file cfx_fontmapper_unittest.cpp.

References CFX_FontMapper::IsStandardFontName().

+ Here is the call graph for this function:

◆ TEST() [3/3]

TEST ( CFX_FontMapper ,
MakeTag  )

Definition at line 114 of file cfx_fontmapper_unittest.cpp.

References g_maybe_changes, and CFX_FontMapper::MakeTag().

+ Here is the call graph for this function:

◆ TEST_F() [1/2]

TEST_F ( CFXFontMapperSystemFontInfoTest ,
GetCachedFaceFailToGetData  )

Definition at line 223 of file cfx_fontmapper_unittest.cpp.

◆ TEST_F() [2/2]

TEST_F ( CFXFontMapperSystemFontInfoTest ,
GetCachedTTCFaceFailToGetData  )

Definition at line 201 of file cfx_fontmapper_unittest.cpp.

Variable Documentation

◆ g_maybe_changes

char g_maybe_changes = '\xff'

Definition at line 90 of file cfx_fontmapper_unittest.cpp.

Referenced by TEST().