OLD | NEW |
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_suggestion_identifier
.h" | 5 #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion
_identifier.h" |
6 | 6 |
7 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_section_i
nformation.h" | 7 #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion
s_section_information.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 #if !defined(__has_feature) || !__has_feature(objc_arc) | 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
11 #error "This file requires ARC support." | 11 #error "This file requires ARC support." |
12 #endif | 12 #endif |
13 | 13 |
14 @interface ContentSuggestionIdentifierSubclassTest : ContentSuggestionIdentifier | 14 @interface ContentSuggestionIdentifierSubclassTest : ContentSuggestionIdentifier |
15 @end | 15 @end |
16 | 16 |
17 @implementation ContentSuggestionIdentifierSubclassTest | 17 @implementation ContentSuggestionIdentifierSubclassTest |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ContentSuggestionIdentifier* suggestionIdentifier3 = | 83 ContentSuggestionIdentifier* suggestionIdentifier3 = |
84 [[ContentSuggestionIdentifier alloc] init]; | 84 [[ContentSuggestionIdentifier alloc] init]; |
85 suggestionIdentifier3.sectionInfo = sectionInfo2; | 85 suggestionIdentifier3.sectionInfo = sectionInfo2; |
86 suggestionIdentifier3.IDInSection = id1; | 86 suggestionIdentifier3.IDInSection = id1; |
87 | 87 |
88 // Action and Test. | 88 // Action and Test. |
89 EXPECT_FALSE([suggestionIdentifier1 isEqual:suggestionIdentifier2]); | 89 EXPECT_FALSE([suggestionIdentifier1 isEqual:suggestionIdentifier2]); |
90 EXPECT_FALSE([suggestionIdentifier2 isEqual:suggestionIdentifier3]); | 90 EXPECT_FALSE([suggestionIdentifier2 isEqual:suggestionIdentifier3]); |
91 EXPECT_FALSE([suggestionIdentifier1 isEqual:suggestionIdentifier3]); | 91 EXPECT_FALSE([suggestionIdentifier1 isEqual:suggestionIdentifier3]); |
92 } | 92 } |
OLD | NEW |