OLD | NEW |
(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 } |
OLD | NEW |