Support sideloaded fonts via command line option for blink layout_tests
commit070080b9254c952e6ece5959015c7f941003b795
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 15 Apr 2014 14:30:39 +0000 (15 14:30 +0000)
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 15 Apr 2014 14:30:39 +0000 (15 14:30 +0000)
tree182b617a73dafd606e9bb263983c383f870916eb
parentc2c7eedd925458f895f7134f47e88551b28e1709
Support sideloaded fonts via command line option for blink layout_tests

Blink side is: https://codereview.chromium.org/235553003/ which
must land and roll first.

Adds support for --register-font-files which adds the given
file(s) to the sandbox policy (readonly), creates and warms up
the font, and passes it to blink.

Also, modify the setup code for layout tests so "Ahem" will be
found correctly.

R=jschuh@chromium.org,eae@chromium.org
BUG=333029
TEST=out\debug\content_shell d:\src\tmp\a.html --enable-direct-write --register-font-files=D:\src\cr3\src\content\shell\renderer\test_runner\resources\fonts\AHEM____.TTF
TEST=ninja -C out\Debug blink_tests && webkit\tools\layout_tests\run_webkit_tests fast/parser/fonts.html --debug --nocheck-sys-deps (with directwrite forced on)

Review URL: https://codereview.chromium.org/231763003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263842 0039d316-1c4b-4281-b951-d872f2087c98
13 files changed:
content/common/sandbox_win.h
content/content_renderer.gypi
content/public/renderer/render_font_warmup_win.cc [new file with mode: 0644]
content/public/renderer/render_font_warmup_win.h [new file with mode: 0644]
content/renderer/renderer_main_platform_delegate_win.cc
content/shell/app/webkit_test_platform_support_win.cc
content/shell/browser/shell_content_browser_client.cc
content/shell/browser/shell_content_browser_client.h
content/shell/common/shell_switches.cc
content/shell/common/shell_switches.h
content/shell/common/webkit_test_helpers.cc
content/shell/common/webkit_test_helpers.h
content/shell/renderer/shell_content_renderer_client.cc