Chromium Code Reviews| Index: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile_unittest.mm |
| diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile_unittest.mm b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile_unittest.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8ad6eb02131785c91416e8ee3c1a27e0440e490b |
| --- /dev/null |
| +++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile_unittest.mm |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile.h" |
| + |
| +#include "testing/gtest/include/gtest/gtest.h" |
| + |
| +#if !defined(__has_feature) || !__has_feature(objc_arc) |
| +#error "This file requires ARC support." |
| +#endif |
| + |
| +namespace { |
| + |
| +TEST(ContentSuggestionsMostVisitedTileTest, Constructor) { |
| + NSString* title = @"Test title"; |
| + ContentSuggestionsMostVisitedTile* tile = |
| + [ContentSuggestionsMostVisitedTile tileWithTitle:title attributes:nil]; |
|
lpromero
2017/04/07 10:58:22
Anything with the attributes you could test?
gambard
2017/04/07 14:47:22
Always the same problem... The faviconView is an i
lpromero
2017/04/07 15:16:12
The test you added is perfectly fine.
For testing
|
| + |
| + ASSERT_TRUE([title isEqualToString:tile.accessibilityLabel]); |
| +} |
|
lpromero
2017/04/07 10:58:22
Nit: New line.
gambard
2017/04/07 14:47:22
Done.
|
| +} |