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

Side by Side Diff: content/shell/app/blink_test_platform_support_linux.cc

Issue 642813006: content: Rename webkit_test_platform_support* to blink_test_platform_support* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix GN Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/app/webkit_test_platform_support.h" 5 #include "content/shell/app/blink_test_platform_support.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "ui/gfx/test/fontconfig_util_linux.h" 11 #include "ui/gfx/test/fontconfig_util_linux.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 namespace { 15 namespace {
16 16
17 const char* const kLocalFonts[] = { 17 const char* const kLocalFonts[] = {
18 "AHEM____.TTF", 18 "AHEM____.TTF",
19 "GardinerModBug.ttf", 19 "GardinerModBug.ttf",
20 "GardinerModCat.ttf", 20 "GardinerModCat.ttf",
21 }; 21 };
22 22
23 } // namespace 23 } // namespace
24 24
25 bool CheckLayoutSystemDeps() { 25 bool CheckLayoutSystemDeps() {
26 return true; 26 return true;
27 } 27 }
28 28
29 bool WebKitTestPlatformInitialize() { 29 bool BlinkTestPlatformInitialize() {
30 gfx::SetUpFontconfig(); 30 gfx::SetUpFontconfig();
31 31
32 base::FilePath base_path; 32 base::FilePath base_path;
33 PathService::Get(base::DIR_MODULE, &base_path); 33 PathService::Get(base::DIR_MODULE, &base_path);
34 if (!gfx::LoadConfigFileIntoFontconfig( 34 if (!gfx::LoadConfigFileIntoFontconfig(
35 base_path.Append(FILE_PATH_LITERAL("fonts.conf")))) 35 base_path.Append(FILE_PATH_LITERAL("fonts.conf"))))
36 return false; 36 return false;
37 37
38 for (size_t i = 0; i < gfx::kNumSystemFontsForFontconfig; ++i) { 38 for (size_t i = 0; i < gfx::kNumSystemFontsForFontconfig; ++i) {
39 if (!gfx::LoadFontIntoFontconfig( 39 if (!gfx::LoadFontIntoFontconfig(
(...skipping 19 matching lines...) Expand all
59 if (!base::PathExists(lohit_path)) { 59 if (!base::PathExists(lohit_path)) {
60 lohit_path = base::FilePath( 60 lohit_path = base::FilePath(
61 "/usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf"); 61 "/usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf");
62 } 62 }
63 gfx::LoadFontIntoFontconfig(lohit_path); 63 gfx::LoadFontIntoFontconfig(lohit_path);
64 64
65 return true; 65 return true;
66 } 66 }
67 67
68 } // namespace content 68 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/app/blink_test_platform_support_android.cc ('k') | content/shell/app/blink_test_platform_support_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698