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

Unified Diff: chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc

Issue 6894027: Initial refactoring complete Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed some tests that were broken by previous refactoring Created 9 years, 8 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
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher.cc ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5815a3fac4ab8f73cb364906b21b0b2d2363f10e..6308ec14a53bff9d358893a4607526f89a325c9e 100644
--- a/chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc
+++ b/chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc
@@ -457,7 +457,12 @@ TEST_F(GaiaAuthFetcherTest, FullTokenSuccess) {
GaiaAuthFetcher auth(&consumer, std::string(),
profile_.GetRequestContext());
- auth.StartIssueAuthToken("sid", "lsid", "service");
+
+// auth.StartIssueAuthToken("sid", "lsid", "service");
+ GaiaAuthConsumer::ClientLoginResult credentials;
+ credentials.sid = "sid";
+ credentials.lsid = "lsid";
+ auth.StartIssueAuthToken(credentials, "service");
URLFetcher::set_factory(NULL);
EXPECT_TRUE(auth.HasPendingFetch());
@@ -482,7 +487,11 @@ TEST_F(GaiaAuthFetcherTest, FullTokenFailure) {
GaiaAuthFetcher auth(&consumer, std::string(),
profile_.GetRequestContext());
- auth.StartIssueAuthToken("sid", "lsid", "service");
+// auth.StartIssueAuthToken("sid", "lsid", "service");
+ GaiaAuthConsumer::ClientLoginResult credentials;
+ credentials.sid = "sid";
+ credentials.lsid = "lsid";
+ auth.StartIssueAuthToken(credentials, "service");
URLFetcher::set_factory(NULL);
EXPECT_TRUE(auth.HasPendingFetch());
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher.cc ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698