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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc

Issue 1169923005: Update oauth2 token endpoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix local_discovery_ui_browsertest Created 5 years, 6 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 | « no previous file | google_apis/gaia/fake_gaia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
index 049c95a47d50e3103e6a6d559377bfb607e98adb..2adb5338be52306c59ff4cb375f8f52709efab63 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
@@ -272,9 +272,6 @@ const char kURLCloudPrintConfirm[] =
const char kURLRegisterComplete[] =
"http://1.2.3.4:8888/privet/register?action=complete&user=user%40host.com";
-const char kURLGaiaToken[] =
- "https://accounts.google.com/o/oauth2/token";
-
const char kSampleGaiaId[] = "12345";
const char kSampleUser[] = "user@host.com";
@@ -398,13 +395,13 @@ class LocalDiscoveryUITest : public WebUIBrowserTest {
net::URLRequestStatus::SUCCESS);
fake_fetcher_factory().SetFakeResponse(
- GURL(kURLGaiaToken),
+ GaiaUrls::GetInstance()->oauth2_token_url(),
kResponseGaiaToken,
net::HTTP_OK,
net::URLRequestStatus::SUCCESS);
EXPECT_CALL(fake_url_fetcher_creator(), OnCreateFakeURLFetcher(
- kURLGaiaToken))
+ GaiaUrls::GetInstance()->oauth2_token_url().spec()))
.Times(AnyNumber());
fake_fetcher_factory().SetFakeResponse(
« no previous file with comments | « no previous file | google_apis/gaia/fake_gaia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698