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

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

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: rebase + compile fix 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/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 namespace web { 9 namespace web {
10 10
11 BOOL ItemStoragesAreEqual(CRWNavigationItemStorage* item1, 11 BOOL ItemStoragesAreEqual(CRWNavigationItemStorage* item1,
12 CRWNavigationItemStorage* item2) { 12 CRWNavigationItemStorage* item2) {
13 return item1.virtualURL == item2.virtualURL && 13 return item1.virtualURL == item2.virtualURL &&
14 item1.referrer.url == item2.referrer.url && 14 item1.referrer.url == item2.referrer.url &&
15 item1.referrer.policy == item2.referrer.policy && 15 item1.referrer.policy == item2.referrer.policy &&
16 item1.timestamp == item2.timestamp && item1.title == item2.title && 16 item1.timestamp == item2.timestamp && item1.title == item2.title &&
17 item1.displayState == item2.displayState && 17 item1.displayState == item2.displayState &&
18 item1.shouldSkipRepostFormConfirmation == 18 item1.shouldSkipRepostFormConfirmation ==
19 item2.shouldSkipRepostFormConfirmation && 19 item2.shouldSkipRepostFormConfirmation &&
20 item1.overridingUserAgent == item2.overridingUserAgent && 20 item1.userAgentType == item2.userAgentType &&
21 [item1.POSTData isEqualToData:item2.POSTData] && 21 [item1.POSTData isEqualToData:item2.POSTData] &&
22 [item1.HTTPRequestHeaders 22 [item1.HTTPRequestHeaders
23 isEqualToDictionary:item2.HTTPRequestHeaders]; 23 isEqualToDictionary:item2.HTTPRequestHeaders];
24 } 24 }
25 25
26 } // namespace web 26 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_item_storage_builder.mm ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698