| 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];
|
| +
|
| + ASSERT_TRUE([title isEqualToString:tile.accessibilityLabel]);
|
| +}
|
| +}
|
|
|