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

Unified Diff: chrome/browser/download/download_history_unittest.cc

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-string Created 3 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/download/download_history_unittest.cc
diff --git a/chrome/browser/download/download_history_unittest.cc b/chrome/browser/download/download_history_unittest.cc
index 21259ac7bc7c67458c502d14791eff1423172e1f..1a856b4dd2b426bf42a8e2acd144ff3b539cc6c1 100644
--- a/chrome/browser/download/download_history_unittest.cc
+++ b/chrome/browser/download/download_history_unittest.cc
@@ -21,7 +21,7 @@
#include "components/history/core/browser/history_service.h"
#include "content/public/test/mock_download_item.h"
#include "content/public/test/mock_download_manager.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
#include "extensions/features/features.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -196,8 +196,7 @@ class DownloadHistoryTest : public testing::Test {
typedef base::Callback<void(content::MockDownloadItem*)> DownloadItemCallback;
DownloadHistoryTest()
- : ui_thread_(content::BrowserThread::UI, &loop_),
- manager_(new content::MockDownloadManager()),
+ : manager_(new content::MockDownloadManager()),
history_(NULL),
manager_observer_(NULL),
download_created_index_(0) {}
@@ -484,8 +483,7 @@ class DownloadHistoryTest : public testing::Test {
EXPECT_EQ(expected_value, download_history_->WasRestoredFromHistory(item));
}
- base::MessageLoopForUI loop_;
- content::TestBrowserThread ui_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
std::vector<std::unique_ptr<StrictMockDownloadItem>> items_;
std::unique_ptr<content::MockDownloadManager> manager_;
FakeHistoryAdapter* history_;

Powered by Google App Engine
This is Rietveld 408576698