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..ca32858e7099ff903510336a49e88d044d09bd2d 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 { |
@@ -49,6 +50,9 @@ class WebTestWithWebState : public WebTest, |
web::WebState* web_state(); |
const web::WebState* web_state() const; |
+ // Adds a pending item to the NavigationManager associated with the WebState. |
+ void AddPendingItem(const GURL& url, ui::PageTransition transition); |
Eugene But (OOO till 7-30)
2017/04/04 18:22:31
Could you please move this closer to LoadHtml. The
liaoyuke
2017/04/04 21:15:40
Done.
|
+ |
private: |
// base::MessageLoop::TaskObserver overrides. |
void WillProcessTask(const base::PendingTask& pending_task) override; |