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

Side by Side Diff: chrome/browser/signin/signin_promo_unittest.cc

Issue 579033002: [Clean-up] Remove some dead code for handling Webstore sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore incorrectly deleted code Created 6 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/signin/signin_promo.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "url/gurl.h"
9
10 namespace signin {
11
12 TEST(SigninPromoTest, GetNextPageURLForPromoURL_ValidContinueURL) {
13 GURL promo_url = GetPromoURLWithContinueURL(SOURCE_MENU,
14 false /* auto_close */,
15 false /* is_constrained */,
16 GURL("https://www.example.com"));
17 EXPECT_EQ(GURL("https://www.example.com"),
18 GetNextPageURLForPromoURL(promo_url));
19 }
20
21 TEST(SigninPromoTest, GetNextPageURLForPromoURL_EmptyContinueURL) {
22 GURL promo_url = GetPromoURLWithContinueURL(SOURCE_MENU,
23 false /* auto_close */,
24 false /* is_constrained */,
25 GURL());
26 EXPECT_TRUE(GetNextPageURLForPromoURL(promo_url).is_empty());
27 }
28
29 } // namespace signin
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_promo.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698