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

Unified Diff: ios/web/test/web_int_test.h

Issue 2605223002: Created test for no-op history state operations. (Closed)
Patch Set: eugene's comments Created 3 years, 11 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/test/web_int_test.h
diff --git a/ios/web/test/web_int_test.h b/ios/web/test/web_int_test.h
index 8544c257460a6fe164c4216b191e310615f7ac33..71ff8d2bdeac29b9f070f413d11ca03af6b1cccf 100644
--- a/ios/web/test/web_int_test.h
+++ b/ios/web/test/web_int_test.h
@@ -34,6 +34,11 @@ class WebIntTest : public WebTest {
return web_state()->GetNavigationManager();
}
+ // Returns the last committed NavigationItem in |navigation_manager|.
+ NavigationItem* GetLastCommittedItem() {
+ return navigation_manager()->GetLastCommittedItem();
+ }
+
// Synchronously executes |script| on |web_state|'s JS injection receiver and
// returns the result.
id ExecuteJavaScript(NSString* script);

Powered by Google App Engine
This is Rietveld 408576698