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

Unified Diff: chrome/browser/chromeos/login/online_attempt_unittest.cc

Issue 9348022: [cros] Use mocked URLFetcher and other mocks in ExistingUserController tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move Created 8 years, 9 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 12e8fa72896fd76bbf069b2a208c10bc9a2aee96..0058dae5512ecebbe080e62c0cd2fdb8ea5bc283 100644
--- a/chrome/browser/chromeos/login/online_attempt_unittest.cc
+++ b/chrome/browser/chromeos/login/online_attempt_unittest.cc
@@ -15,7 +15,7 @@
#include "chrome/browser/chromeos/login/online_attempt.h"
#include "chrome/browser/chromeos/login/test_attempt_state.h"
#include "chrome/common/net/gaia/gaia_auth_consumer.h"
-#include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h"
+#include "chrome/common/net/gaia/mock_url_fetcher_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "content/test/test_browser_thread.h"
#include "googleurl/src/gurl.h"
@@ -130,7 +130,7 @@ TEST_F(OnlineAttemptTest, LoginCancelRetry) {
// This is how we inject fake URLFetcher objects, with a factory.
// This factory creates fake URLFetchers that Start() a fake fetch attempt
// and then come back on the IO thread saying they've been canceled.
- MockFactory<GotCanceledFetcher> factory;
+ MockURLFetcherFactory<GotCanceledFetcher> factory;
attempt_->Initiate(&profile);
BrowserThread::PostTask(
@@ -155,7 +155,7 @@ TEST_F(OnlineAttemptTest, LoginTimeout) {
// This is how we inject fake URLFetcher objects, with a factory.
// This factory creates fake URLFetchers that Start() a fake fetch attempt
// and then come back on the IO thread saying they've been canceled.
- MockFactory<ExpectCanceledFetcher> factory;
+ MockURLFetcherFactory<ExpectCanceledFetcher> factory;
attempt_->Initiate(&profile);
BrowserThread::PostTask(
@@ -182,7 +182,7 @@ TEST_F(OnlineAttemptTest, HostedLoginRejected) {
.RetiresOnSaturation();
// This is how we inject fake URLFetcher objects, with a factory.
- MockFactory<HostedFetcher> factory;
+ MockURLFetcherFactory<HostedFetcher> factory;
TestAttemptState local_state("", "", "", "", "", true);
attempt_ = new OnlineAttempt(false, &local_state, resolver_.get());
@@ -206,7 +206,7 @@ TEST_F(OnlineAttemptTest, FullLogin) {
.RetiresOnSaturation();
// This is how we inject fake URLFetcher objects, with a factory.
- MockFactory<SuccessFetcher> factory;
+ MockURLFetcherFactory<SuccessFetcher> factory;
TestAttemptState local_state("", "", "", "", "", true);
attempt_ = new OnlineAttempt(false, &local_state, resolver_.get());
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/parallel_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698