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

Unified Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 8734009: Revive reverted path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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/browser/net/gaia/token_service_unittest.cc ('k') | chrome/common/net/gaia/gaia_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/sync_test.cc
===================================================================
--- chrome/browser/sync/test/integration/sync_test.cc (revision 112048)
+++ chrome/browser/sync/test/integration/sync_test.cc (working copy)
@@ -32,6 +32,7 @@
#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/net/gaia/gaia_urls.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -67,6 +68,13 @@
"https://www.google.com/accounts/IssueAuthToken";
const char kSearchDomainCheckUrl[] =
"https://www.google.com/searchdomaincheck?format=domain&type=chrome";
+static const char kOAuth2LoginTokenValidResponse[] =
Raghu Simha 2011/11/29 23:56:59 nit: Remove static modifier.
Munjal (Google) 2011/11/30 00:02:00 Done.
+ "{"
+ " \"refresh_token\": \"rt1\","
+ " \"access_token\": \"at1\","
+ " \"expires_in\": 3600,"
+ " \"token_type\": \"Bearer\""
+ "}";
}
// Helper class that checks whether a sync test server is running or not.
@@ -371,6 +379,10 @@
fake_factory_->SetFakeResponse(kGetUserInfoUrl, "email=user@gmail.com", true);
fake_factory_->SetFakeResponse(kIssueAuthTokenUrl, "auth", true);
fake_factory_->SetFakeResponse(kSearchDomainCheckUrl, ".google.com", true);
+ fake_factory_->SetFakeResponse(
+ GaiaUrls::GetInstance()->client_login_to_oauth2_url(),
+ kOAuth2LoginTokenValidResponse,
+ true);
}
// Start up a local sync server based on the value of server_type_, which
« no previous file with comments | « chrome/browser/net/gaia/token_service_unittest.cc ('k') | chrome/common/net/gaia/gaia_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698