Skip to content

Commit

Permalink
also add our AllowFontFamily method to TestFontSelector to avoid comp…
Browse files Browse the repository at this point in the history
…ile errors
  • Loading branch information
pilgrim-brave committed Mar 24, 2022
1 parent ea90f2a commit 4f3f26b
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* Copyright (c) 2022 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

// We must include these explicitly before redefining method names that they
// also use.
#include "third_party/blink/renderer/platform/fonts/font_fallback_list.h"
#include "third_party/blink/renderer/platform/fonts/font_selector.h"

#define IsPlatformFamilyMatchAvailable \
AllowFontFamily(const AtomicString& family_name) override { return true; } \
bool IsPlatformFamilyMatchAvailable

#include "src/third_party/blink/renderer/platform/testing/font_test_helpers.cc"

0 comments on commit 4f3f26b

Please sign in to comment.