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

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

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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_manager_impl_unittest.cc
diff --git a/content/browser/download/download_manager_impl_unittest.cc b/content/browser/download/download_manager_impl_unittest.cc
index 52933cae98f519541ead80fdd16eaca27e349a28..eaa7040cb12b63fb21e510a05c43af861369319d 100644
--- a/content/browser/download/download_manager_impl_unittest.cc
+++ b/content/browser/download/download_manager_impl_unittest.cc
@@ -18,6 +18,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/stl_util.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
@@ -541,10 +542,8 @@ class DownloadManagerTest : public testing::Test {
download_manager_->Shutdown();
download_manager_.reset();
- message_loop_.RunUntilIdle();
- ASSERT_EQ(NULL, mock_download_item_factory_.get());
- ASSERT_EQ(NULL, mock_download_file_factory_.get());
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
+ ASSERT_FALSE(mock_download_item_factory_);
mock_download_manager_delegate_.reset();
mock_browser_context_.reset();
download_urls_.clear();

Powered by Google App Engine
This is Rietveld 408576698