summaryrefslogtreecommitdiffstats
path: root/content/shell/common/webkit_test_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/common/webkit_test_helpers.cc')
-rw-r--r--content/shell/common/webkit_test_helpers.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/content/shell/common/webkit_test_helpers.cc b/content/shell/common/webkit_test_helpers.cc
index d2c1ea1..5c0cf3d 100644
--- a/content/shell/common/webkit_test_helpers.cc
+++ b/content/shell/common/webkit_test_helpers.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_service.h"
+#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/common/content_switches.h"
#include "content/shell/common/shell_switches.h"
@@ -118,4 +119,16 @@ base::FilePath GetWebKitRootDirFilePath() {
return base_path.Append(FILE_PATH_LITERAL("third_party/WebKit"));
}
+std::vector<std::string> GetSideloadFontFiles() {
+ std::vector<std::string> files;
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ if (command_line.HasSwitch(switches::kRegisterFontFiles)) {
+ base::SplitString(
+ command_line.GetSwitchValueASCII(switches::kRegisterFontFiles),
+ ';',
+ &files);
+ }
+ return files;
+}
+
} // namespace content