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

Unified Diff: ios/web/navigation/crw_navigation_item_storage_unittest.mm

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: rebase + compile fix Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/crw_navigation_item_storage_unittest.mm
diff --git a/ios/web/navigation/crw_navigation_item_storage_unittest.mm b/ios/web/navigation/crw_navigation_item_storage_unittest.mm
index 2daffa6433e88ad832d087aebb4280229113ef15..4f107018bda2e5c8bebdd496aab7cfe9a5e3ad0c 100644
--- a/ios/web/navigation/crw_navigation_item_storage_unittest.mm
+++ b/ios/web/navigation/crw_navigation_item_storage_unittest.mm
@@ -36,6 +36,7 @@
[item_storage_
setPOSTData:[@"Test data" dataUsingEncoding:NSUTF8StringEncoding]];
[item_storage_ setHTTPRequestHeaders:@{ @"HeaderKey" : @"HeaderValue" }];
+ [item_storage_ setUserAgentType:web::UserAgentType::DESKTOP];
}
// Convenience getter to facilitate dot notation in tests.
@@ -66,9 +67,9 @@
item_storage().displayState.GetSerialization();
[archiver encodeObject:display_state_dict
forKey:web::kNavigationItemStoragePageDisplayStateKey];
- BOOL overriding_user_agent = item_storage().overridingUserAgent;
- [archiver encodeBool:overriding_user_agent
- forKey:web::kNavigationItemStorageUseDesktopUserAgentKey];
+ [archiver
+ encodeBool:YES
+ forKey:web::kNavigationItemStorageUseDesktopUserAgentDeprecatedKey];
NSDictionary* request_headers = item_storage().HTTPRequestHeaders;
[archiver encodeObject:request_headers
forKey:web::kNavigationItemStorageHTTPRequestHeadersKey];
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698