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

Unified Diff: ui/gfx/font_names_testing.cc

Issue 2302313002: Configure font font names in GFX unittests (Closed)
Patch Set: Use Heiti SC font, namespace, comment, hex escapes Created 4 years, 3 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/font_names_testing.h ('k') | ui/gfx/font_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_names_testing.cc
diff --git a/ui/gfx/font_names_testing.cc b/ui/gfx/font_names_testing.cc
new file mode 100644
index 0000000000000000000000000000000000000000..941852a330a7eec797c19add209c2e7c8dcf9683
--- /dev/null
+++ b/ui/gfx/font_names_testing.cc
@@ -0,0 +1,25 @@
+// Copyright 2016 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/font_names_testing.h"
+
+#include "build/build_config.h"
+
+namespace gfx {
+
+#if defined(OS_LINUX)
+const char kSymbolFontName[] = "DejaVu Sans";
jungshik at Google 2016/09/16 19:34:55 Will this test ever be run on an actual Chrome OS
drott 2016/09/20 07:37:39 It would be much better to have access to Noto ind
+#else
+const char kSymbolFontName[] = "Symbol";
+#endif
+
+#if defined(OS_LINUX)
+const char kCJKFontName[] = "Kochi Mincho";
+#elif defined(OS_MACOSX)
+const char kCJKFontName[] = "Heiti SC";
+#else
+const char kCJKFontName[] = "SimSun";
+#endif
+
+} // namespace gfx
« no previous file with comments | « ui/gfx/font_names_testing.h ('k') | ui/gfx/font_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698