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

Side by Side Diff: ios/chrome/browser/ui/authentication/signin_promo_view_unittest.mm

Issue 2749703003: Adding mediator for Sign-in promo (Closed)
Patch Set: Update tests Created 3 years, 8 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 2017 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 #import "ios/chrome/browser/ui/authentication/signin_promo_view.h"
6
7 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate rialButtons.h"
8 #include "third_party/ocmock/gtest_support.h"
9
10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
14 TEST(SigninPromoViewTest, SecondaryButtonVisibility) {
15 SigninPromoView* view =
16 [[SigninPromoView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
17 view.mode = SigninPromoViewModeColdState;
18 EXPECT_TRUE(view.secondaryButton.hidden);
19 view.mode = SigninPromoViewModeWarmState;
20 EXPECT_FALSE(view.secondaryButton.hidden);
21 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/authentication/signin_promo_view_mediator_unittest.mm ('k') | ios/chrome/browser/ui/settings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698