| Index: content/public/test/web_contents_tester.h
|
| diff --git a/content/public/test/web_contents_tester.h b/content/public/test/web_contents_tester.h
|
| index c3fe69110ed3dfeb5151ad86a5c005ace0e90944..e587a36f43bc383dc098d55ecad233cf9718af5f 100644
|
| --- a/content/public/test/web_contents_tester.h
|
| +++ b/content/public/test/web_contents_tester.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <string>
|
|
|
| +#include "base/macros.h"
|
| #include "ui/base/page_transition_types.h"
|
|
|
| class GURL;
|
| @@ -17,6 +18,7 @@ class BrowserContext;
|
| class RenderFrameHost;
|
| class RenderViewHost;
|
| class SiteInstance;
|
| +class WebContentsImpl;
|
| class WebContents;
|
| struct Referrer;
|
|
|
| @@ -57,6 +59,10 @@ class WebContentsTester {
|
| BrowserContext* browser_context,
|
| SiteInstance* instance);
|
|
|
| + // Simulates the WebContentsView being shown to, or hidden from, the user.
|
| + void WasShownForTest();
|
| + void WasHiddenForTest();
|
| +
|
| // Simulates the appropriate RenderView (pending if any, current otherwise)
|
| // sending a navigate notification for the NavigationController pending entry.
|
| virtual void CommitPendingNavigation() = 0;
|
| @@ -120,6 +126,14 @@ class WebContentsTester {
|
| // Returns headers that were passed in the previous SaveFrameWithHeaders(...)
|
| // call.
|
| virtual const std::string& GetSaveFrameHeaders() = 0;
|
| +
|
| + protected:
|
| + WebContentsTester();
|
| +
|
| + private:
|
| + WebContentsImpl* web_contents();
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WebContentsTester);
|
| };
|
|
|
| } // namespace content
|
|
|