This source file includes following definitions.
- TEST
- TEST
#include "chrome/browser/signin/signin_promo.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace signin {
TEST(SigninPromoTest, GetNextPageURLForPromoURL_ValidContinueURL) {
GURL promo_url = GetPromoURLWithContinueURL(SOURCE_MENU,
false ,
false ,
GURL("https://www.example.com"));
EXPECT_EQ(GURL("https://www.example.com"),
GetNextPageURLForPromoURL(promo_url));
}
TEST(SigninPromoTest, GetNextPageURLForPromoURL_EmptyContinueURL) {
GURL promo_url = GetPromoURLWithContinueURL(SOURCE_MENU,
false ,
false ,
GURL());
EXPECT_TRUE(GetNextPageURLForPromoURL(promo_url).is_empty());
}
}