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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/cells/bookmark_parent_folder_item_unittest.mm

Issue 2586993002: Upstream Chrome on iOS source code [3/11]. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ios/chrome/browser/ui/bookmarks/cells/bookmark_parent_folder_item.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/bookmarks/cells/bookmark_parent_folder_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 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
14 namespace {
15
16 TEST(BookmarkParentFolderItemTest, LabelGetsTitle) {
17 BookmarkParentFolderItem* item =
18 [[BookmarkParentFolderItem alloc] initWithType:0];
19 BookmarkParentFolderCell* cell =
20 [[BookmarkParentFolderCell alloc] initWithFrame:CGRectZero];
21
22 item.title = @"Foo";
23 [item configureCell:cell];
24 EXPECT_EQ(@"Foo", cell.parentFolderNameLabel.text);
25 }
26
27 } // namespace
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/bookmarks/cells/bookmark_parent_folder_item.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698