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

Unified Diff: components/autofill/content/browser/wallet/wallet_service_url_unittest.cc

Issue 123363002: rAc: don't open sign in continue url in new tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 6 years, 12 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 | « components/autofill/content/browser/wallet/wallet_service_url.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
diff --git a/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc b/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
index 48252631c9970b8aaa60a556f907f66d6120c454..60edb4fbf6c695c123a520adeb1269be3ebb6afe 100644
--- a/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
+++ b/components/autofill/content/browser/wallet/wallet_service_url_unittest.cc
@@ -98,6 +98,8 @@ TEST(WalletServiceUrl, IsUsingProd) {
}
TEST(WalletServiceUrl, IsSignInContinueUrl) {
+ EXPECT_TRUE(GetSignInContinueUrl().SchemeIsSecure());
+
CommandLine* command_line = CommandLine::ForCurrentProcess();
command_line->AppendSwitchASCII(switches::kWalletServiceUseSandbox, "1");
@@ -129,6 +131,9 @@ TEST(WalletServiceUrl, IsSignInContinueUrl) {
TEST(WalletServiceUrl, IsSignInRelatedUrl) {
EXPECT_TRUE(IsSignInRelatedUrl(GetSignInUrl()));
+ EXPECT_TRUE(IsSignInRelatedUrl(GURL("https://accounts.youtube.com")));
+ EXPECT_TRUE(IsSignInRelatedUrl(GURL("https://accounts.youtube.com/")));
+ EXPECT_TRUE(IsSignInRelatedUrl(GURL("https://accounts.google.com")));
EXPECT_FALSE(IsSignInRelatedUrl(GURL("http://google.com")));
}
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_service_url.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698