OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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/settings/cells/version_item.h" |
| 6 |
| 7 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 |
| 10 namespace { |
| 11 |
| 12 TEST(VersionItemTest, TextLabelGetsText) { |
| 13 VersionItem* item = [[VersionItem alloc] initWithType:0]; |
| 14 VersionCell* cell = [[[item cellClass] alloc] init]; |
| 15 EXPECT_TRUE([cell isMemberOfClass:[VersionCell class]]); |
| 16 |
| 17 item.text = @"Foo"; |
| 18 [item configureCell:cell]; |
| 19 EXPECT_EQ(@"Foo", cell.textLabel.text); |
| 20 } |
| 21 |
| 22 } // namespace |
OLD | NEW |