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

Unified Diff: chrome/browser/chromeos/offline/offline_load_page_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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/chromeos/offline/offline_load_page_unittest.cc
diff --git a/chrome/browser/chromeos/offline/offline_load_page_unittest.cc b/chrome/browser/chromeos/offline/offline_load_page_unittest.cc
index 19c85185f6e1af3d336be32a2e365457947d3ab9..db56c59b9ca9fba36b2737ac47fe7ba3a2150512 100644
--- a/chrome/browser/chromeos/offline/offline_load_page_unittest.cc
+++ b/chrome/browser/chromeos/offline/offline_load_page_unittest.cc
@@ -53,10 +53,10 @@ class OfflineLoadPageTest : public ChromeRenderViewHostTestHarness {
};
OfflineLoadPageTest()
- : ui_thread_(BrowserThread::UI, MessageLoop::current()),
+ : ui_thread_(BrowserThread::UI, base::MessageLoop::current()),
file_user_blocking_thread_(
- BrowserThread::FILE_USER_BLOCKING, MessageLoop::current()),
- io_thread_(BrowserThread::IO, MessageLoop::current()) {
+ BrowserThread::FILE_USER_BLOCKING, base::MessageLoop::current()),
+ io_thread_(BrowserThread::IO, base::MessageLoop::current()) {
}
virtual void SetUp() {
@@ -117,11 +117,11 @@ TEST_F(OfflineLoadPageTest, OfflinePageProceed) {
ShowInterstitial(kURL2);
InterstitialPage* interstitial = GetOfflineLoadPage();
ASSERT_TRUE(interstitial);
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
// Simulate the user clicking "proceed".
interstitial->Proceed();
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
EXPECT_EQ(OK, user_response());
@@ -144,7 +144,7 @@ TEST_F(OfflineLoadPageTest, OfflinePageDontProceed) {
ShowInterstitial(kURL2);
InterstitialPage* interstitial = GetOfflineLoadPage();
ASSERT_TRUE(interstitial);
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
// Simulate the user clicking "don't proceed".
interstitial->DontProceed();

Powered by Google App Engine
This is Rietveld 408576698