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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_ui_utils_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/ui/bookmarks/bookmark_ui_utils_unittest.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc b/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc
index 770be539354cc4440e0734c81b63ca47e680f29d..c252dbe147429354258e93a3641f38b255070373 100644
--- a/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc
@@ -8,6 +8,7 @@
#include "chrome/test/base/testing_profile.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/test/test_bookmark_client.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
#if !defined(OS_ANDROID) && !defined(OS_IOS)
@@ -18,7 +19,11 @@ using bookmarks::BookmarkNode;
namespace {
-TEST(BookmarkUIUtilsTest, HasBookmarkURLs) {
+class BookmarkUIUtilsTest : public testing::Test {
+ content::TestBrowserThreadBundle thread_bundle_;
+};
+
+TEST_F(BookmarkUIUtilsTest, HasBookmarkURLs) {
bookmarks::TestBookmarkClient client;
scoped_ptr<BookmarkModel> model(client.CreateModel());
@@ -60,7 +65,7 @@ TEST(BookmarkUIUtilsTest, HasBookmarkURLs) {
EXPECT_FALSE(chrome::HasBookmarkURLs(nodes));
}
-TEST(BookmarkUIUtilsTest, HasBookmarkURLsAllowedInIncognitoMode) {
+TEST_F(BookmarkUIUtilsTest, HasBookmarkURLsAllowedInIncognitoMode) {
bookmarks::TestBookmarkClient client;
scoped_ptr<BookmarkModel> model(client.CreateModel());
TestingProfile profile;

Powered by Google App Engine
This is Rietveld 408576698