OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/browser/tab_contents/tab_contents.h" | 9 #include "content/browser/tab_contents/tab_contents.h" |
10 #include "content/public/common/page_transition_types.h" | 10 #include "content/public/common/page_transition_types.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // TODO(joi): Move to content namespace. | 26 // TODO(joi): Move to content namespace. |
27 class TestTabContents : public TabContents, public content::WebContentsTester { | 27 class TestTabContents : public TabContents, public content::WebContentsTester { |
28 public: | 28 public: |
29 TestTabContents(content::BrowserContext* browser_context, | 29 TestTabContents(content::BrowserContext* browser_context, |
30 content::SiteInstance* instance); | 30 content::SiteInstance* instance); |
31 virtual ~TestTabContents(); | 31 virtual ~TestTabContents(); |
32 | 32 |
33 // WebContentsTester implementation. | 33 // WebContentsTester implementation. |
34 virtual void CommitPendingNavigation() OVERRIDE; | 34 virtual void CommitPendingNavigation() OVERRIDE; |
35 virtual int GetNumberOfFocusCalls() OVERRIDE; | 35 virtual int GetNumberOfFocusCalls() OVERRIDE; |
36 virtual content::RenderViewHost* pending_rvh() const OVERRIDE; | 36 virtual content::RenderViewHost* GetPendingRenderViewHost() const OVERRIDE; |
37 virtual void NavigateAndCommit(const GURL& url) OVERRIDE; | 37 virtual void NavigateAndCommit(const GURL& url) OVERRIDE; |
38 virtual void ProceedWithCrossSiteNavigation() OVERRIDE; | 38 virtual void ProceedWithCrossSiteNavigation() OVERRIDE; |
39 virtual void TestDidNavigate(content::RenderViewHost* render_view_host, | 39 virtual void TestDidNavigate(content::RenderViewHost* render_view_host, |
40 int page_id, | 40 int page_id, |
41 const GURL& url, | 41 const GURL& url, |
42 content::PageTransition transition) OVERRIDE; | 42 content::PageTransition transition) OVERRIDE; |
43 virtual void TestDidNavigateWithReferrer( | 43 virtual void TestDidNavigateWithReferrer( |
44 content::RenderViewHost* render_view_host, | 44 content::RenderViewHost* render_view_host, |
45 int page_id, | 45 int page_id, |
46 const GURL& url, | 46 const GURL& url, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 // Expectations for arguments of |SetHistoryLengthAndPrune()|. | 98 // Expectations for arguments of |SetHistoryLengthAndPrune()|. |
99 bool expect_set_history_length_and_prune_; | 99 bool expect_set_history_length_and_prune_; |
100 scoped_refptr<const SiteInstanceImpl> | 100 scoped_refptr<const SiteInstanceImpl> |
101 expect_set_history_length_and_prune_site_instance_; | 101 expect_set_history_length_and_prune_site_instance_; |
102 int expect_set_history_length_and_prune_history_length_; | 102 int expect_set_history_length_and_prune_history_length_; |
103 int32 expect_set_history_length_and_prune_min_page_id_; | 103 int32 expect_set_history_length_and_prune_min_page_id_; |
104 }; | 104 }; |
105 | 105 |
106 #endif // CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ | 106 #endif // CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ |
OLD | NEW |