Lines Matching refs:AppsPromo
30 AppsPromo* apps_promo() { return apps_promo_; }
43 AppsPromo* apps_promo_;
47 apps_promo_(new AppsPromo(&prefs_)) {
79 EXPECT_EQ(AppsPromo::kDefaultAppsCounterMax + 1,
86 EXPECT_FALSE(AppsPromo::IsPromoSupportedForLocale());
93 AppsPromo::SetPromo(
96 EXPECT_TRUE(AppsPromo::IsPromoSupportedForLocale());
105 EXPECT_TRUE(AppsPromo::IsPromoSupportedForLocale());
114 EXPECT_TRUE(AppsPromo::IsPromoSupportedForLocale());
123 EXPECT_TRUE(AppsPromo::IsPromoSupportedForLocale());
133 AppsPromo::SetPromo(
136 // ... then make sure AppsPromo can access it.
137 EXPECT_EQ(kPromoId, AppsPromo::GetPromoId());
138 EXPECT_EQ(kPromoHeader, AppsPromo::GetPromoHeaderText());
139 EXPECT_EQ(kPromoButton, AppsPromo::GetPromoButtonText());
140 EXPECT_EQ(GURL(kPromoLink), AppsPromo::GetPromoLink());
141 EXPECT_EQ(kPromoExpire, AppsPromo::GetPromoExpireText());
142 EXPECT_TRUE(AppsPromo::IsPromoSupportedForLocale());
144 AppsPromo::ClearPromo();
145 EXPECT_EQ("", AppsPromo::GetPromoId());
146 EXPECT_EQ("", AppsPromo::GetPromoHeaderText());
147 EXPECT_EQ("", AppsPromo::GetPromoButtonText());
148 EXPECT_EQ(GURL(""), AppsPromo::GetPromoLink());
149 EXPECT_EQ("", AppsPromo::GetPromoExpireText());
150 EXPECT_FALSE(AppsPromo::IsPromoSupportedForLocale());
164 AppsPromo::SetPromo(
168 EXPECT_TRUE(AppsPromo::IsPromoSupportedForLocale());