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

Side by Side Diff: ui/gfx/font_fallback_win_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/gfx/font_fallback_win.h"
5 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "base/message_loop/message_loop.h"
6 #include "base/run_loop.h" 8 #include "base/run_loop.h"
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/font_fallback_win.h"
9 10
10 namespace gfx { 11 namespace gfx {
11 12
12 namespace { 13 namespace {
13 14
14 // Subclass of LinkedFontsIterator for testing that allows mocking the linked 15 // Subclass of LinkedFontsIterator for testing that allows mocking the linked
15 // fonts vector. 16 // fonts vector.
16 class TestLinkedFontsIterator : public internal::LinkedFontsIterator { 17 class TestLinkedFontsIterator : public internal::LinkedFontsIterator {
17 public: 18 public:
18 explicit TestLinkedFontsIterator(Font font) : LinkedFontsIterator(font) { 19 explicit TestLinkedFontsIterator(Font font) : LinkedFontsIterator(font) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Needed to bypass DCHECK in GetFallbackFont. 131 // Needed to bypass DCHECK in GetFallbackFont.
131 base::MessageLoopForUI message_loop; 132 base::MessageLoopForUI message_loop;
132 133
133 Font base_font; 134 Font base_font;
134 Font fallback_font; 135 Font fallback_font;
135 bool result = GetFallbackFont(base_font, L"", 0, &fallback_font); 136 bool result = GetFallbackFont(base_font, L"", 0, &fallback_font);
136 EXPECT_FALSE(result); 137 EXPECT_FALSE(result);
137 } 138 }
138 139
139 } // namespace gfx 140 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698