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

Unified Diff: chrome/browser/page_cycler/page_cycler_unittest.cc

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix InstantNTP test. Created 7 years, 5 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/page_cycler/page_cycler_unittest.cc
diff --git a/chrome/browser/page_cycler/page_cycler_unittest.cc b/chrome/browser/page_cycler/page_cycler_unittest.cc
index cbfc07e88ca0e6dba8aa918081107b24038cacb4..2ef95fec46e674498346d3e10f100a5575b4cd5f 100644
--- a/chrome/browser/page_cycler/page_cycler_unittest.cc
+++ b/chrome/browser/page_cycler/page_cycler_unittest.cc
@@ -5,6 +5,7 @@
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/prefs/testing_pref_service.h"
+#include "base/run_loop.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -150,7 +151,7 @@ class PageCyclerTest : public BrowserWithTestWindowTest {
void PumpLoop() {
content::BrowserThread::GetBlockingPool()->FlushForTesting();
- message_loop()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void CloseBrowser() {
@@ -310,7 +311,7 @@ TEST_F(PageCyclerTest, KillBrowserAndAbort) {
DidFinishLoad(kFrameID, kAboutURL, kIsMainFrame, _))
.WillOnce(Invoke(page_cycler(),
&MockPageCycler::PageCyclerDidFinishLoad));
- message_loop()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
FinishLoad();

Powered by Google App Engine
This is Rietveld 408576698