| 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_;
|
|
|