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

Unified Diff: content/shell/app/webkit_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 side-by-side diff with in-line comments
Download patch
Index: content/shell/app/webkit_test_platform_support_linux.cc
diff --git a/content/shell/app/webkit_test_platform_support_linux.cc b/content/shell/app/webkit_test_platform_support_linux.cc
deleted file mode 100644
index 5693e93e2b5fb1956c9897339ed9e264f096c73e..0000000000000000000000000000000000000000
--- a/content/shell/app/webkit_test_platform_support_linux.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/shell/app/webkit_test_platform_support.h"
-
-#include "base/files/file_path.h"
-#include "base/files/file_util.h"
-#include "base/logging.h"
-#include "base/path_service.h"
-#include "ui/gfx/test/fontconfig_util_linux.h"
-
-namespace content {
-
-namespace {
-
-const char* const kLocalFonts[] = {
- "AHEM____.TTF",
- "GardinerModBug.ttf",
- "GardinerModCat.ttf",
-};
-
-} // namespace
-
-bool CheckLayoutSystemDeps() {
- return true;
-}
-
-bool WebKitTestPlatformInitialize() {
- gfx::SetUpFontconfig();
-
- base::FilePath base_path;
- PathService::Get(base::DIR_MODULE, &base_path);
- if (!gfx::LoadConfigFileIntoFontconfig(
- base_path.Append(FILE_PATH_LITERAL("fonts.conf"))))
- return false;
-
- for (size_t i = 0; i < gfx::kNumSystemFontsForFontconfig; ++i) {
- if (!gfx::LoadFontIntoFontconfig(
- base::FilePath(gfx::kSystemFontsForFontconfig[i]))) {
- return false;
- }
- }
- for (size_t i = 0; i < arraysize(kLocalFonts); ++i) {
- if (!gfx::LoadFontIntoFontconfig(base_path.Append(kLocalFonts[i])))
- return false;
- }
-
- base::FilePath garuda_path("/usr/share/fonts/truetype/thai/Garuda.ttf");
- if (!base::PathExists(garuda_path))
- garuda_path = base::FilePath("/usr/share/fonts/truetype/tlwg/Garuda.ttf");
- if (!gfx::LoadFontIntoFontconfig(garuda_path))
- return false;
-
- // We special case these fonts because they're only needed in a few layout
- // tests.
- base::FilePath lohit_path(
- "/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf");
- if (!base::PathExists(lohit_path)) {
- lohit_path = base::FilePath(
- "/usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf");
- }
- gfx::LoadFontIntoFontconfig(lohit_path);
-
- return true;
-}
-
-} // namespace content
« no previous file with comments | « content/shell/app/webkit_test_platform_support_android.cc ('k') | content/shell/app/webkit_test_platform_support_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698