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

Unified Diff: test/perf.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/ot-sanitise.cc ('k') | test/side-by-side.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/perf.cc
diff --git a/test/perf.cc b/test/perf.cc
old mode 100644
new mode 100755
index e9e76160621c7f679663aeaa270bcfbf3a35266d..88a15f8cbff8f2bf454e3a02e3fe8f53da0c1148
--- a/test/perf.cc
+++ b/test/perf.cc
@@ -4,7 +4,7 @@
#include <fcntl.h>
#include <sys/stat.h>
-#include <sys/time.h> // for timersub macro.
+#include <sys/time.h>
#include <unistd.h>
#include <time.h>
@@ -62,7 +62,8 @@ int main(int argc, char **argv) {
::gettimeofday(&start, 0);
for (int i = 0; i < num_repeat; ++i) {
ots::MemoryStream output(result, st.st_size + kPadLen);
- bool r = ots::Process(&output, data, st.st_size);
+ ots::OTSContext context;
+ bool r = context.Process(&output, data, st.st_size);
if (!r) {
std::fprintf(stderr, "Failed to sanitise file!\n");
return 1;
« .gitmodules ('K') | « test/ot-sanitise.cc ('k') | test/side-by-side.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698