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

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: Fix unit tests 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..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;

Powered by Google App Engine
This is Rietveld 408576698