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

Unified Diff: chrome/browser/chromeos/login/online_attempt_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/login/online_attempt_unittest.cc
diff --git a/chrome/browser/chromeos/login/online_attempt_unittest.cc b/chrome/browser/chromeos/login/online_attempt_unittest.cc
index ac1a8de2255c55fb460faee75d3451b471483c6e..34c089fef2aca023c99d759bea08769159e89a31 100644
--- a/chrome/browser/chromeos/login/online_attempt_unittest.cc
+++ b/chrome/browser/chromeos/login/online_attempt_unittest.cc
@@ -33,7 +33,7 @@ namespace chromeos {
class OnlineAttemptTest : public testing::Test {
public:
OnlineAttemptTest()
- : message_loop_(MessageLoop::TYPE_UI),
+ : message_loop_(base::MessageLoop::TYPE_UI),
ui_thread_(BrowserThread::UI, &message_loop_),
state_(UserContext(), "", "", "", User::USER_TYPE_REGULAR, false),
resolver_(new MockAuthAttemptStateResolver) {
@@ -72,14 +72,14 @@ class OnlineAttemptTest : public testing::Test {
static void Quit() {
BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE, MessageLoop::QuitClosure());
+ BrowserThread::UI, FROM_HERE, base::MessageLoop::QuitClosure());
}
static void RunThreadTest() {
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
}
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
content::TestBrowserThread ui_thread_;
TestAttemptState state_;
scoped_ptr<MockAuthAttemptStateResolver> resolver_;
@@ -121,7 +121,7 @@ TEST_F(OnlineAttemptTest, LoginCancelRetry) {
BrowserThread::UI, FROM_HERE,
base::Bind(&OnlineAttemptTest::RunThreadTest));
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_TRUE(error == state_.online_outcome().error());
EXPECT_EQ(LoginFailure::NETWORK_AUTH_FAILED,
@@ -149,7 +149,7 @@ TEST_F(OnlineAttemptTest, LoginTimeout) {
// Post a task to cancel the login attempt.
CancelLogin(attempt_.get());
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(LoginFailure::LOGIN_TIMED_OUT, state_.online_outcome().reason());
}
@@ -176,7 +176,7 @@ TEST_F(OnlineAttemptTest, HostedLoginRejected) {
BrowserThread::UI, FROM_HERE,
base::Bind(&OnlineAttemptTest::RunThreadTest));
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(error, local_state.online_outcome());
EXPECT_EQ(LoginFailure::NETWORK_AUTH_FAILED,
@@ -201,7 +201,7 @@ TEST_F(OnlineAttemptTest, FullLogin) {
BrowserThread::UI, FROM_HERE,
base::Bind(&OnlineAttemptTest::RunThreadTest));
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(LoginFailure::LoginFailureNone(), local_state.online_outcome());
}
« no previous file with comments | « chrome/browser/chromeos/login/mock_url_fetchers.cc ('k') | chrome/browser/chromeos/login/parallel_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698