chromium/third_party/pdfium/core/fxge/cfx_fontmapper_unittest.cpp

// Copyright 2019 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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"

_;
DoAll;
ElementsAre;
InSequence;
Invoke;
Return;
WithArg;

class MockSystemFontInfo : public SystemFontInfoIface {};

// Class that exposes private CFX_FontMapper methods.
class TestFontMapper : public CFX_FontMapper {};

class CFXFontMapperSystemFontInfoTest : public testing::Test {};

// Deliberately give this global variable external linkage.
char g_maybe_changes =;

TEST(CFX_FontMapper, IsStandardFontName) {}

TEST(CFX_FontMapper, MakeTag) {}

TEST(CFX_FontMapper, AddInstalledFontBasic) {}

#ifdef PDF_ENABLE_XFA
TEST_F(CFXFontMapperSystemFontInfoTest, RawBytesForIndex) {}

TEST_F(CFXFontMapperSystemFontInfoTest, RawBytesForIndexFailToMap) {}

TEST_F(CFXFontMapperSystemFontInfoTest, RawBytesForIndexFailToGetDataSize) {}

TEST_F(CFXFontMapperSystemFontInfoTest, RawBytesForIndexFailToGetData) {}
#endif  // PDF_ENABLE_XFA

// Regression test for crbug.com/1372234 - should not crash.
TEST_F(CFXFontMapperSystemFontInfoTest, GetCachedTTCFaceFailToGetData) {}

// Regression test for crbug.com/1372234 - should not crash.
TEST_F(CFXFontMapperSystemFontInfoTest, GetCachedFaceFailToGetData) {}