summaryrefslogtreecommitdiff
path: root/testing/utils/path_service.h
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-05-17 20:43:42 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-17 20:43:42 +0000
commitdd8da5e2f0f4558d98a8a6f93f9cb14b5b091277 (patch)
tree84bfb5c6bbafbf35732441142acb9413cabad941 /testing/utils/path_service.h
parentc524fc91aa42a8e34b4daf9a67fa283e25f48560 (diff)
downloadpdfium-dd8da5e2f0f4558d98a8a6f93f9cb14b5b091277.tar.xz
Add check that --font-dir is actually a directorychromium/3434
Hoisted myself on this today when I was actually passing the path to the font file I wanted to use, not the directory. BUG=pdfium:1008,pdfium:1020 Change-Id: I4a68a7d96633e951a92125d83397ff457288b1e0 Reviewed-on: https://pdfium-review.googlesource.com/32636 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing/utils/path_service.h')
-rw-r--r--testing/utils/path_service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/utils/path_service.h b/testing/utils/path_service.h
index fc0042ca17..63df808dae 100644
--- a/testing/utils/path_service.h
+++ b/testing/utils/path_service.h
@@ -16,6 +16,9 @@
// Get the various file directory and path information.
class PathService {
public:
+ // Return true when the path is a directory that exists.
+ static bool DirectoryExists(const std::string& path);
+
// Return true when the path ends with a path separator.
static bool EndsWithSeparator(const std::string& path);