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

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

Issue 9117048: Revert r118627 and r118640 "Update Gaia URL." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 namespace switches { 55 namespace switches {
56 const char kPasswordFileForTest[] = "password-file-for-test"; 56 const char kPasswordFileForTest[] = "password-file-for-test";
57 const char kSyncUserForTest[] = "sync-user-for-test"; 57 const char kSyncUserForTest[] = "sync-user-for-test";
58 const char kSyncPasswordForTest[] = "sync-password-for-test"; 58 const char kSyncPasswordForTest[] = "sync-password-for-test";
59 const char kSyncServerCommandLine[] = "sync-server-command-line"; 59 const char kSyncServerCommandLine[] = "sync-server-command-line";
60 } 60 }
61 61
62 namespace { 62 namespace {
63 // The URLs for different calls in the Google Accounts programmatic login API. 63 // The URLs for different calls in the Google Accounts programmatic login API.
64 const char kClientLoginUrl[] = "https://accounts.google.com/ClientLogin"; 64 const char kClientLoginUrl[] = "https://www.google.com/accounts/ClientLogin";
65 const char kGetUserInfoUrl[] = "https://accounts.google.com/GetUserInfo"; 65 const char kGetUserInfoUrl[] = "https://www.google.com/accounts/GetUserInfo";
66 const char kIssueAuthTokenUrl[] = 66 const char kIssueAuthTokenUrl[] =
67 "https://accounts.google.com/IssueAuthToken"; 67 "https://www.google.com/accounts/IssueAuthToken";
68 const char kSearchDomainCheckUrl[] = 68 const char kSearchDomainCheckUrl[] =
69 "https://www.google.com/searchdomaincheck?format=domain&type=chrome"; 69 "https://www.google.com/searchdomaincheck?format=domain&type=chrome";
70 const char kOAuth2LoginTokenValidResponse[] = 70 const char kOAuth2LoginTokenValidResponse[] =
71 "{" 71 "{"
72 " \"refresh_token\": \"rt1\"," 72 " \"refresh_token\": \"rt1\","
73 " \"access_token\": \"at1\"," 73 " \"access_token\": \"at1\","
74 " \"expires_in\": 3600," 74 " \"expires_in\": 3600,"
75 " \"token_type\": \"Bearer\"" 75 " \"token_type\": \"Bearer\""
76 "}"; 76 "}";
77 } 77 }
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 717
718 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, 718 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter,
719 const net::ProxyConfig& proxy_config) { 719 const net::ProxyConfig& proxy_config) {
720 base::WaitableEvent done(false, false); 720 base::WaitableEvent done(false, false);
721 BrowserThread::PostTask( 721 BrowserThread::PostTask(
722 BrowserThread::IO, FROM_HERE, 722 BrowserThread::IO, FROM_HERE,
723 base::Bind(&SetProxyConfigCallback, &done, 723 base::Bind(&SetProxyConfigCallback, &done,
724 make_scoped_refptr(context_getter), proxy_config)); 724 make_scoped_refptr(context_getter), proxy_config));
725 done.Wait(); 725 done.Wait();
726 } 726 }
OLDNEW
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher.cc ('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