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

Unified Diff: ios/web/public/test/web_test_with_web_state.h

Issue 2779263002: Set user agent type of transient item the same as pending item. (Closed)
Patch Set: Address comments Created 3 years, 8 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
Index: ios/web/public/test/web_test_with_web_state.h
diff --git a/ios/web/public/test/web_test_with_web_state.h b/ios/web/public/test/web_test_with_web_state.h
index b167056f398810c4538c4f91c8b2ff65a5f34798..bf9f29f3cb15b8bc3433865f2aa5eb43bbeb453a 100644
--- a/ios/web/public/test/web_test_with_web_state.h
+++ b/ios/web/public/test/web_test_with_web_state.h
@@ -8,6 +8,7 @@
#import "base/ios/block_types.h"
#include "base/message_loop/message_loop.h"
#include "ios/web/public/test/web_test.h"
+#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
namespace web {
@@ -25,6 +26,9 @@ class WebTestWithWebState : public WebTest,
void SetUp() override;
void TearDown() override;
+ // Adds a pending item to the NavigationManager associated with the WebState.
+ void AddPendingItem(const GURL& url, ui::PageTransition transition);
+
// Loads the specified HTML content with URL into the WebState.
void LoadHtml(NSString* html, const GURL& url);
// Loads the specified HTML content into the WebState, using test url name.
« no previous file with comments | « ios/web/navigation/navigation_manager_impl_unittest.mm ('k') | ios/web/public/test/web_test_with_web_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698