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

Side by Side Diff: ios/web/navigation/navigation_item_storage_test_util.mm

Issue 2935983002: [ObjC ARC] Converts ios/web:ios_web_navigation_unittests to ARC. (Closed)
Patch Set: Created 3 years, 6 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/web/navigation/navigation_item_storage_test_util.h" 5 #import "ios/web/navigation/navigation_item_storage_test_util.h"
6 6
7 #import "ios/web/public/crw_navigation_item_storage.h" 7 #import "ios/web/public/crw_navigation_item_storage.h"
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
9 namespace web { 13 namespace web {
10 14
11 BOOL ItemStoragesAreEqual(CRWNavigationItemStorage* item1, 15 BOOL ItemStoragesAreEqual(CRWNavigationItemStorage* item1,
12 CRWNavigationItemStorage* item2) { 16 CRWNavigationItemStorage* item2) {
13 return item1.virtualURL == item2.virtualURL && 17 return item1.virtualURL == item2.virtualURL &&
14 item1.referrer.url == item2.referrer.url && 18 item1.referrer.url == item2.referrer.url &&
15 item1.referrer.policy == item2.referrer.policy && 19 item1.referrer.policy == item2.referrer.policy &&
16 item1.timestamp == item2.timestamp && item1.title == item2.title && 20 item1.timestamp == item2.timestamp && item1.title == item2.title &&
17 item1.displayState == item2.displayState && 21 item1.displayState == item2.displayState &&
18 item1.shouldSkipRepostFormConfirmation == 22 item1.shouldSkipRepostFormConfirmation ==
19 item2.shouldSkipRepostFormConfirmation && 23 item2.shouldSkipRepostFormConfirmation &&
20 item1.userAgentType == item2.userAgentType && 24 item1.userAgentType == item2.userAgentType &&
21 [item1.POSTData isEqualToData:item2.POSTData] && 25 [item1.POSTData isEqualToData:item2.POSTData] &&
22 [item1.HTTPRequestHeaders 26 [item1.HTTPRequestHeaders
23 isEqualToDictionary:item2.HTTPRequestHeaders]; 27 isEqualToDictionary:item2.HTTPRequestHeaders];
24 } 28 }
25 29
26 } // namespace web 30 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_item_impl_unittest.mm ('k') | ios/web/navigation/navigation_manager_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698