• dpapad's avatar
    MojoWebUIBrowserTest: Allow compressing of test resources. · f0db84bd
    dpapad authored
    Previously the code assumed, via the usage of
    l10n_util::GetStringUTF16, that the underlying resources at
    chrome/test/data/webui_test_resources.grd are not compressed.
    
    Moreover, using l10n_util::GetStringUTF16() is not designed for fetching
    a file's content and was somewhat misused here.
    
    This is one of many CLs, in preparation of compressing all HTML, JS,
    CSS, SVG files by default (meaning without requiring compress="gzip"
    to be specified).
    
    Bug: 1068407
    Change-Id: I77fe0f9966f6e277288838c42260433c34bd403c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2146090
    Auto-Submit: dpapad <dpapad@chromium.org>
    Commit-Queue: Ken Rockot <rockot@google.com>
    Reviewed-by: default avatarKen Rockot <rockot@google.com>
    Cr-Commit-Position: refs/heads/master@{#758538}
    f0db84bd
mojo_web_ui_browser_test.cc 5.16 KB