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

Unified Diff: samples/pdfium_test.cc

Issue 1952923002: Combine corpus runner into test_runner.py (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | testing/test_support.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/pdfium_test.cc
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 47c8d5fe3f2c8f5d2a62f66c55ceb889f25ea9c4..a917b5e31bfd6074f2b225274558ba0a017d5705 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -816,7 +816,14 @@ int main(int argc, const char* argv[]) {
GetFileContents(filename.c_str(), &file_length);
if (!file_contents)
continue;
- fprintf(stderr, "Rendering PDF file %s.\n", filename.c_str());
+
+ std::string test_dir = "pdfium/testing/";
Tom Sepez 2016/05/05 16:39:08 Feels like this shouldn't have any knowledge of th
dsinclair 2016/05/05 16:45:08 This is just for the fprintf below. I was trying t
+ size_t pdfium_testing = filename.find(test_dir);
+ std::string log_name = filename;
+ if (pdfium_testing != std::string::npos)
+ log_name = filename.substr(pdfium_testing + test_dir.length());
+ fprintf(stderr, "Rendering PDF file %s.\n", log_name.c_str());
+
std::string events;
if (options.send_events) {
std::string event_filename = filename;
« no previous file with comments | « no previous file | testing/test_support.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698