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

Unified Diff: ios/web/public/test/fakes/test_web_state.h

Issue 2807843002: Refactor creation of SadTabView into a tab helper object (Closed)
Patch Set: Attempt to fix build dependency 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
« no previous file with comments | « ios/chrome/browser/web/sad_tab_tab_helper_unittest.mm ('k') | ios/web/public/test/fakes/test_web_state.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/fakes/test_web_state.h
diff --git a/ios/web/public/test/fakes/test_web_state.h b/ios/web/public/test/fakes/test_web_state.h
index ca0a5b47c161634f29a668ddb9373d41fce1f8be..aa513c8a217946a59df99bfee390e10848ab94fd 100644
--- a/ios/web/public/test/fakes/test_web_state.h
+++ b/ios/web/public/test/fakes/test_web_state.h
@@ -53,7 +53,8 @@ class TestWebState : public WebState {
const GURL& GetVisibleURL() const override;
const GURL& GetLastCommittedURL() const override;
GURL GetCurrentURL(URLVerificationTrustLevel* trust_level) const override;
- void ShowTransientContentView(CRWContentView* content_view) override {}
+ void ShowTransientContentView(CRWContentView* content_view) override;
+ void ClearTransientContentView();
void AddScriptCommandCallback(const ScriptCommandCallback& callback,
const std::string& command_prefix) override {}
void RemoveScriptCommandCallback(const std::string& command_prefix) override {
@@ -84,14 +85,19 @@ class TestWebState : public WebState {
std::unique_ptr<NavigationManager> navigation_manager);
void SetView(UIView* view);
+ // Getters for test data.
+ bool IsShowingTransientContentView();
+
// Notifier for tests.
void OnPageLoaded(PageLoadCompletionStatus load_completion_status);
void OnProvisionalNavigationStarted(const GURL& url);
+ void OnRenderProcessGone();
private:
BrowserState* browser_state_;
bool web_usage_enabled_;
bool is_loading_;
+ bool is_showing_transient_content_view_;
GURL url_;
base::string16 title_;
URLVerificationTrustLevel trust_level_;
« no previous file with comments | « ios/chrome/browser/web/sad_tab_tab_helper_unittest.mm ('k') | ios/web/public/test/fakes/test_web_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698