Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3176)

Unified Diff: test/validator-checker.cc

Issue 658573004: Updating to new OTS repo from https://github.com/khaledhosny/ots.git (Closed) Base URL: https://chromium.googlesource.com/external/ots@master
Patch Set: Adding Colored Emoji changes from external/git repo Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/validator-checker.cc
diff --git a/test/validator-checker.cc b/test/validator-checker.cc
old mode 100644
new mode 100755
index 92bf0fc3d84012a69adfb0b881ec5abc95b0b122..639641b209f654308bf59e0e7de8779c03900cfe
--- a/test/validator-checker.cc
+++ b/test/validator-checker.cc
@@ -5,9 +5,9 @@
#if !defined(_MSC_VER)
#ifdef __linux__
// Linux
-#include <freetype/ftoutln.h>
#include <ft2build.h>
#include FT_FREETYPE_H
+#include FT_OUTLINE_H
#else
// Mac OS X
#include <ApplicationServices/ApplicationServices.h> // g++ -framework Cocoa
@@ -161,8 +161,9 @@ int main(int argc, char **argv) {
static const size_t kBigPadLen = 1024 * 1024; // 1MB
uint8_t *trans_font = new uint8_t[orig_len + kBigPadLen];
ots::MemoryStream output(trans_font, orig_len + kBigPadLen);
+ ots::OTSContext context;
- bool result = ots::Process(&output, orig_font, orig_len);
+ bool result = context.Process(&output, orig_font, orig_len);
if (!result) {
std::fprintf(stderr, "OK: the malicious font was filtered: %s\n", argv[1]);
return 0;
« .gitmodules ('K') | « test/side-by-side.cc ('k') | third_party/brotli/brotli.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698