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

Unified Diff: ui/gfx/platform_font_pango_unittest.cc

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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
« no previous file with comments | « ui/gfx/platform_font_pango.cc ('k') | ui/gfx/platform_font_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/platform_font_pango_unittest.cc
diff --git a/ui/gfx/platform_font_pango_unittest.cc b/ui/gfx/platform_font_pango_unittest.cc
deleted file mode 100644
index f0b4709f6232141e9ec9cc5286eaf45f9cb49260..0000000000000000000000000000000000000000
--- a/ui/gfx/platform_font_pango_unittest.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 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 "ui/gfx/platform_font_pango.h"
-
-#include <cairo/cairo.h>
-#include <fontconfig/fontconfig.h>
-#include <glib-object.h>
-#include <pango/pangocairo.h>
-#include <pango/pangofc-fontmap.h>
-
-#include <string>
-
-#include "base/memory/ref_counted.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gfx/pango_util.h"
-
-namespace gfx {
-
-// Test that PlatformFontPango is able to cope with PangoFontDescriptions
-// containing multiple font families. The first family should be preferred.
-TEST(PlatformFontPangoTest, FamilyList) {
- // Needed for GLib versions prior to 2.36, but deprecated starting 2.35.
-#if !GLIB_CHECK_VERSION(2, 35, 0)
- g_type_init();
-#endif
-
- ScopedPangoFontDescription desc("Arial,Times New Roman, 13px");
- scoped_refptr<gfx::PlatformFontPango> font(
- new gfx::PlatformFontPango(desc.get()));
- EXPECT_EQ("Arial", font->GetFontName());
- EXPECT_EQ(13, font->GetFontSize());
-
- ScopedPangoFontDescription desc2("Times New Roman,Arial, 15px");
- scoped_refptr<gfx::PlatformFontPango> font2(
- new gfx::PlatformFontPango(desc2.get()));
- EXPECT_EQ("Times New Roman", font2->GetFontName());
- EXPECT_EQ(15, font2->GetFontSize());
-
- // Free memory allocated by FontConfig (http://crbug.com/114750).
- pango_fc_font_map_cache_clear(
- PANGO_FC_FONT_MAP(pango_cairo_font_map_get_default()));
- cairo_debug_reset_static_data();
- FcFini();
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/platform_font_pango.cc ('k') | ui/gfx/platform_font_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698