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

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
« no previous file with comments | « ios/web/navigation/history_state_operations_inttest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3471a40e4c4fc066b080f77762bdf9cb345c1648..4330b1f2a0e9d923952e19125e1f0d789228c79c 100644
--- a/ios/web/test/web_int_test.h
+++ b/ios/web/test/web_int_test.h
@@ -35,6 +35,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);
« no previous file with comments | « ios/web/navigation/history_state_operations_inttest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698