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

Unified Diff: content/browser/download/download_file_unittest.cc

Issue 8400060: Switch content tests to use BrowserThreadImpl directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/browser/download/download_file_unittest.cc
diff --git a/content/browser/download/download_file_unittest.cc b/content/browser/download/download_file_unittest.cc
index 44fb740ce0bad7bdeff97651365aab5f7e2dbe6f..7def4a0370932096ee30634d7aa5821783db0976 100644
--- a/content/browser/download/download_file_unittest.cc
+++ b/content/browser/download/download_file_unittest.cc
@@ -5,6 +5,7 @@
#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/string_number_conversions.h"
+#include "content/browser/browser_thread_impl.h"
#include "content/browser/download/download_create_info.h"
#include "content/browser/download/download_file.h"
#include "content/browser/download/download_manager.h"
@@ -12,11 +13,12 @@
#include "content/browser/download/download_status_updater.h"
#include "content/browser/download/mock_download_manager.h"
#include "content/browser/download/mock_download_manager_delegate.h"
-#include "content/test/test_browser_thread.h"
#include "net/base/file_stream.h"
#include "net/base/net_errors.h"
#include "testing/gtest/include/gtest/gtest.h"
+using content::BrowserThreadImpl;
+
class DownloadFileTest : public testing::Test {
public:
@@ -105,9 +107,9 @@ class DownloadFileTest : public testing::Test {
private:
MessageLoop loop_;
// UI thread.
- content::TestBrowserThread ui_thread_;
+ BrowserThreadImpl ui_thread_;
// File thread to satisfy debug checks in DownloadFile.
- content::TestBrowserThread file_thread_;
+ BrowserThreadImpl file_thread_;
// Keep track of what data should be saved to the disk file.
std::string expected_data_;

Powered by Google App Engine
This is Rietveld 408576698