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

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_footer_item_unittest.mm

Issue 2761753002: Cleanup ContentSuggestions cells (Closed)
Patch Set: Fix tests Created 3 years, 9 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_footer_it em.h" 5 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_foo ter_item.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #import "third_party/ocmock/OCMock/OCMock.h" 8 #import "third_party/ocmock/OCMock/OCMock.h"
9 #import "third_party/ocmock/gtest_support.h" 9 #import "third_party/ocmock/gtest_support.h"
10 10
11 #if !defined(__has_feature) || !__has_feature(objc_arc) 11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support." 12 #error "This file requires ARC support."
13 #endif 13 #endif
14 14
15 namespace { 15 namespace {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Action. 56 // Action.
57 [cell prepareForReuse]; 57 [cell prepareForReuse];
58 58
59 // Test. 59 // Test.
60 ASSERT_FALSE(hasBeenCalled); 60 ASSERT_FALSE(hasBeenCalled);
61 [cell.button sendActionsForControlEvents:UIControlEventTouchUpInside]; 61 [cell.button sendActionsForControlEvents:UIControlEventTouchUpInside];
62 ASSERT_FALSE(hasBeenCalled); 62 ASSERT_FALSE(hasBeenCalled);
63 } 63 }
64 } 64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698