Chromium Code Reviews| 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; |