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

Unified Diff: content/shell/common/webkit_test_helpers.cc

Issue 231763003: Support sideloaded fonts via command line option for blink layout_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: guard for xp Created 6 years, 8 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 | « content/shell/common/webkit_test_helpers.h ('k') | content/shell/renderer/shell_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/common/webkit_test_helpers.cc
diff --git a/content/shell/common/webkit_test_helpers.cc b/content/shell/common/webkit_test_helpers.cc
index d2c1ea1df3e831eba5b8e96d8b8c59dc383925a4..5c0cf3d1136816afc914a9fee35f261aa529542d 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
« no previous file with comments | « content/shell/common/webkit_test_helpers.h ('k') | content/shell/renderer/shell_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698