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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 10382077: Update all GAIA URLs to accounts.google.com/... from www.google.com/accounts/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/test/integration/sync_test.h" 5 #include "chrome/browser/sync/test/integration/sync_test.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 namespace switches { 57 namespace switches {
58 const char kPasswordFileForTest[] = "password-file-for-test"; 58 const char kPasswordFileForTest[] = "password-file-for-test";
59 const char kSyncUserForTest[] = "sync-user-for-test"; 59 const char kSyncUserForTest[] = "sync-user-for-test";
60 const char kSyncPasswordForTest[] = "sync-password-for-test"; 60 const char kSyncPasswordForTest[] = "sync-password-for-test";
61 const char kSyncServerCommandLine[] = "sync-server-command-line"; 61 const char kSyncServerCommandLine[] = "sync-server-command-line";
62 } 62 }
63 63
64 namespace { 64 namespace {
65 // The URLs for different calls in the Google Accounts programmatic login API. 65 // The URLs for different calls in the Google Accounts programmatic login API.
66 const char kClientLoginUrl[] = "https://www.google.com/accounts/ClientLogin"; 66 // TODO(rsimha): Use GaiaUrls here.
67 const char kGetUserInfoUrl[] = "https://www.google.com/accounts/GetUserInfo"; 67 const char kClientLoginUrl[] = "https://accounts.google.com/ClientLogin";
68 const char kGetUserInfoUrl[] = "https://accounts.google.com/GetUserInfo";
68 const char kIssueAuthTokenUrl[] = 69 const char kIssueAuthTokenUrl[] =
69 "https://www.google.com/accounts/IssueAuthToken"; 70 "https://accounts.google.com/IssueAuthToken";
70 const char kSearchDomainCheckUrl[] = 71 const char kSearchDomainCheckUrl[] =
71 "https://www.google.com/searchdomaincheck?format=domain&type=chrome"; 72 "https://www.google.com/searchdomaincheck?format=domain&type=chrome";
72 const char kOAuth2LoginTokenValidResponse[] = 73 const char kOAuth2LoginTokenValidResponse[] =
73 "{" 74 "{"
74 " \"refresh_token\": \"rt1\"," 75 " \"refresh_token\": \"rt1\","
75 " \"access_token\": \"at1\"," 76 " \"access_token\": \"at1\","
76 " \"expires_in\": 3600," 77 " \"expires_in\": 3600,"
77 " \"token_type\": \"Bearer\"" 78 " \"token_type\": \"Bearer\""
78 "}"; 79 "}";
79 } 80 }
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 786
786 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, 787 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter,
787 const net::ProxyConfig& proxy_config) { 788 const net::ProxyConfig& proxy_config) {
788 base::WaitableEvent done(false, false); 789 base::WaitableEvent done(false, false);
789 BrowserThread::PostTask( 790 BrowserThread::PostTask(
790 BrowserThread::IO, FROM_HERE, 791 BrowserThread::IO, FROM_HERE,
791 base::Bind(&SetProxyConfigCallback, &done, 792 base::Bind(&SetProxyConfigCallback, &done,
792 make_scoped_refptr(context_getter), proxy_config)); 793 make_scoped_refptr(context_getter), proxy_config));
793 done.Wait(); 794 done.Wait();
794 } 795 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/resources/gaia_login_test.html ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698