summaryrefslogtreecommitdiffstats
path: root/content/public/test/web_contents_tester.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/test/web_contents_tester.cc')
-rw-r--r--content/public/test/web_contents_tester.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/content/public/test/web_contents_tester.cc b/content/public/test/web_contents_tester.cc
index 3b2ed55..4435d9ff 100644
--- a/content/public/test/web_contents_tester.cc
+++ b/content/public/test/web_contents_tester.cc
@@ -13,24 +13,6 @@ namespace {
// The two subclasses here are instantiated via the deprecated
// CreateWebContentsFor... factories below.
-class TestWebContentsCountFocus : public TestWebContents {
- public:
- explicit TestWebContentsCountFocus(BrowserContext* browser_context)
- : TestWebContents(browser_context), focus_called_(0) {
- }
-
- virtual int GetNumberOfFocusCalls() OVERRIDE {
- return focus_called_;
- }
-
- virtual void Focus() OVERRIDE {
- focus_called_++;
- }
-
- private:
- int focus_called_;
-};
-
class TestWebContentsCountSetFocusToLocationBar : public TestWebContents {
public:
explicit TestWebContentsCountSetFocusToLocationBar(
@@ -73,14 +55,4 @@ WebContents* WebContentsTester::CreateTestWebContentsCountSetFocusToLocationBar(
return web_contents;
}
-// static
-WebContents* WebContentsTester::CreateTestWebContentsCountFocus(
- BrowserContext* browser_context,
- SiteInstance* instance) {
- TestWebContentsCountFocus* web_contents =
- new TestWebContentsCountFocus(browser_context);
- web_contents->Init(WebContents::CreateParams(browser_context, instance));
- return web_contents;
-}
-
} // namespace content