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

Unified Diff: chrome/browser/font_family_cache_unittest.cc

Issue 1086733002: Ensure tests have an active task runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 8 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: chrome/browser/font_family_cache_unittest.cc
diff --git a/chrome/browser/font_family_cache_unittest.cc b/chrome/browser/font_family_cache_unittest.cc
index 1911b0ba650684dfb12ed98c89bb8fa01e6606b9..0470b274690e62d7de07aeff230ef3593fe2bd0f 100644
--- a/chrome/browser/font_family_cache_unittest.cc
+++ b/chrome/browser/font_family_cache_unittest.cc
@@ -7,6 +7,7 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/test/base/testing_pref_service_syncable.h"
#include "chrome/test/base/testing_profile.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -31,6 +32,7 @@ class TestingFontFamilyCache : public FontFamilyCache {
// Tests that the cache is correctly set and cleared.
TEST(FontFamilyCacheTest, Caching) {
+ content::TestBrowserThreadBundle thread_bundle_;
TestingProfile profile;
TestingFontFamilyCache cache(&profile);
TestingPrefServiceSyncable* prefs = profile.GetTestingPrefService();
« no previous file with comments | « chrome/browser/extensions/warning_badge_service_unittest.cc ('k') | chrome/browser/lifetime/application_lifetime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698