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

Unified Diff: test/idempotent.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
« .gitmodules ('K') | « test/file-stream.h ('k') | test/ot-sanitise.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/idempotent.cc
diff --git a/test/idempotent.cc b/test/idempotent.cc
old mode 100644
new mode 100755
index fa9f052890b86cf78e73994dba2356e10705dd88..ec50ab44bd4726526d22263f50431caaa5e7c98a
--- a/test/idempotent.cc
+++ b/test/idempotent.cc
@@ -5,9 +5,9 @@
#if !defined(_WIN32)
#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
@@ -172,7 +172,9 @@ int main(int argc, char **argv) {
uint8_t *result = new uint8_t[file_size * 8];
ots::MemoryStream output(result, file_size * 8);
- bool r = ots::Process(&output, data, file_size);
+ ots::OTSContext context;
+
+ bool r = context.Process(&output, data, file_size);
if (!r) {
std::fprintf(stderr, "Failed to sanitise file!\n");
return 1;
@@ -182,7 +184,7 @@ int main(int argc, char **argv) {
uint8_t *result2 = new uint8_t[result_len];
ots::MemoryStream output2(result2, result_len);
- r = ots::Process(&output2, result, result_len);
+ r = context.Process(&output2, result, result_len);
if (!r) {
std::fprintf(stderr, "Failed to sanitise previous output!\n");
return 1;
« .gitmodules ('K') | « test/file-stream.h ('k') | test/ot-sanitise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698