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

Unified Diff: content/child/dwrite_font_proxy/dwrite_font_proxy_win_unittest.cc

Issue 2182213004: Use ChildThreadImpl::thread_safe_sender in font proxy if available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 4 years, 5 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/child/dwrite_font_proxy/dwrite_font_proxy_win_unittest.cc
diff --git a/content/child/dwrite_font_proxy/dwrite_font_proxy_win_unittest.cc b/content/child/dwrite_font_proxy/dwrite_font_proxy_win_unittest.cc
index 3e4bfc5ca7af2bdc70cc17db1dd9c3632ee75b15..8f3b51e3e71de321994edfaa1cf221a5e9b38099 100644
--- a/content/child/dwrite_font_proxy/dwrite_font_proxy_win_unittest.cc
+++ b/content/child/dwrite_font_proxy/dwrite_font_proxy_win_unittest.cc
@@ -48,7 +48,8 @@ class DWriteFontProxyUnitTest : public testing::Test {
fake_collection_ = new FakeFontCollection();
SetupFonts(fake_collection_.get());
mswr::MakeAndInitialize<DWriteFontCollectionProxy>(
- &collection_, factory.Get(), fake_collection_->GetTrackingSender());
+ &collection_, factory.Get(),
+ base::Bind(&FakeFontCollection::GetTrackingSender, fake_collection_));
}
~DWriteFontProxyUnitTest() override {
@@ -384,7 +385,8 @@ TEST_F(DWriteFontProxyUnitTest, TestCustomFontFiles) {
}
mswr::ComPtr<DWriteFontCollectionProxy> collection;
mswr::MakeAndInitialize<DWriteFontCollectionProxy>(
- &collection, factory.Get(), fonts->GetTrackingSender());
+ &collection, factory.Get(),
+ base::Bind(&FakeFontCollection::GetTrackingSender, fonts));
// Check that we can get the font family and match a font.
UINT32 index = UINT_MAX;

Powered by Google App Engine
This is Rietveld 408576698