skia2/modules/skparagraph/utils/TestFontCollection.h
Julia Lavrova 9af5cc4d98 Adding TestFontCollection
Change-Id: I43c20616dd842e9ffeaac614c853be4702a819a7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222104
Commit-Queue: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2019-06-20 20:42:46 +00:00

18 lines
448 B
C++

// Copyright 2019 Google LLC.
#include "modules/skparagraph/include/FontCollection.h"
namespace skia {
namespace textlayout {
class TestFontCollection : public FontCollection {
public:
TestFontCollection(const std::string& resourceDir);
~TestFontCollection() = default;
size_t fontsFound() const { return fFontsFound; }
private:
std::string fResourceDir;
size_t fFontsFound;
};
} // namespace textlayout
} // namespace skia