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

Unified Diff: components/url_formatter/elide_url_unittest.cc

Issue 2054273002: Font fallback for UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 | « no previous file | content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/elide_url_unittest.cc
diff --git a/components/url_formatter/elide_url_unittest.cc b/components/url_formatter/elide_url_unittest.cc
index e251e003ceac8a7dab107aa63701d3659ed5bdd9..fd5b89d4e135696f52d3573f5a2c954be99448dc 100644
--- a/components/url_formatter/elide_url_unittest.cc
+++ b/components/url_formatter/elide_url_unittest.cc
@@ -8,6 +8,7 @@
#include "base/ios/ios_util.h"
#include "base/macros.h"
+#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -108,6 +109,10 @@ TEST(TextEliderTest, TestTrailingEllipsisSlashEllipsisHack) {
// Test eliding of empty strings, URLs with ports, passwords, queries, etc.
TEST(TextEliderTest, TestMoreEliding) {
+#if defined(OS_WIN)
+ // Needed to bypass DCHECK in GetFallbackFont.
+ base::MessageLoopForUI message_loop;
+#endif
const std::string kEllipsisStr(gfx::kEllipsis);
Testcase testcases[] = {
{"http://www.google.com/foo?bar", "www.google.com/foo?bar"},
« no previous file with comments | « no previous file | content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698