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

Unified Diff: chrome/common/net/gaia/gaia_auth_fetcher_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/common/net/gaia/gaia_auth_fetcher_unittest.cc
diff --git a/chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc b/chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc
index f62cfd84954f40cff2282a5e253400f8321dd51a..8d3b4b0897eda81d0526cb1178112cc821c9a681 100644
--- a/chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc
+++ b/chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc
@@ -5,8 +5,6 @@
// A complete set of unit tests for GaiaAuthFetcher.
// Originally ported from GoogleAuthenticator tests.
-#include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h"
-
#include <string>
#include "base/message_loop.h"
@@ -15,6 +13,7 @@
#include "chrome/common/net/gaia/gaia_auth_fetcher.h"
#include "chrome/common/net/gaia/gaia_urls.h"
#include "chrome/common/net/gaia/google_service_auth_error.h"
+#include "chrome/common/net/gaia/mock_url_fetcher_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/common/url_fetcher_delegate.h"
#include "content/test/test_url_fetcher_factory.h"
@@ -482,7 +481,7 @@ TEST_F(GaiaAuthFetcherTest, FullLogin) {
TestingProfile profile;
- MockFactory<MockFetcher> factory;
+ MockURLFetcherFactory<MockFetcher> factory;
GaiaAuthFetcher auth(&consumer, std::string(),
profile_.GetRequestContext());
@@ -501,7 +500,7 @@ TEST_F(GaiaAuthFetcherTest, FullLoginFailure) {
TestingProfile profile;
- MockFactory<MockFetcher> factory;
+ MockURLFetcherFactory<MockFetcher> factory;
factory.set_success(false);
GaiaAuthFetcher auth(&consumer, std::string(),
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher_unittest.h ('k') | chrome/common/net/gaia/mock_url_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698