• Etienne Bergeron's avatar
    Add unittests for default font constructor. · ffd1f793
    Etienne Bergeron authored
    This CL is adding a test to cover:
      Font::Font(...)
      PlatformFont::CreateDefault(...)
    
    The default constructor was not covered by any unittests. This was found
    while doing the migration from PlatformFontWin to PlatformFontSkia.
    
    This CL is also restricting the use Font::platform_font(...) to windows.
    This function will be removed as soon as the migration is completed.
    
    R=robliao@chromium.org, asvitkine@chromium.org
    CC=benck@google.com
    
    Bug: 944227
    Change-Id: Ib9a77c412966c3ebff81dfbf5340a762f69dc6e3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1642816
    Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
    Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#666373}
    ffd1f793
font_unittest.cc 4.9 KB