| 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_TEST_TEST_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
| 9 #include "content/public/common/page_transition_types.h" | 9 #include "content/public/common/page_transition_types.h" |
| 10 #include "content/public/test/web_contents_tester.h" | 10 #include "content/public/test/web_contents_tester.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void ExpectSetHistoryLengthAndPrune(const SiteInstance* site_instance, | 87 void ExpectSetHistoryLengthAndPrune(const SiteInstance* site_instance, |
| 88 int history_length, | 88 int history_length, |
| 89 int32 min_page_id); | 89 int32 min_page_id); |
| 90 | 90 |
| 91 // Compares the arguments passed in with the expected arguments passed in | 91 // Compares the arguments passed in with the expected arguments passed in |
| 92 // to |ExpectSetHistoryLengthAndPrune()|. | 92 // to |ExpectSetHistoryLengthAndPrune()|. |
| 93 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance, | 93 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance, |
| 94 int history_length, | 94 int history_length, |
| 95 int32 min_page_id) OVERRIDE; | 95 int32 min_page_id) OVERRIDE; |
| 96 | 96 |
| 97 void TestDidFinishLoad(int64 frame_id, const GURL& url, bool is_main_frame); | 97 void TestDidFinishLoad(const GURL& url, bool is_main_frame); |
| 98 void TestDidFailLoadWithError(const GURL& url, | 98 void TestDidFailLoadWithError(const GURL& url, |
| 99 bool is_main_frame, | 99 bool is_main_frame, |
| 100 int error_code, | 100 int error_code, |
| 101 const base::string16& error_description); | 101 const base::string16& error_description); |
| 102 | 102 |
| 103 protected: | 103 protected: |
| 104 // The deprecated WebContentsTester still needs to subclass this. | 104 // The deprecated WebContentsTester still needs to subclass this. |
| 105 explicit TestWebContents(BrowserContext* browser_context); | 105 explicit TestWebContents(BrowserContext* browser_context); |
| 106 | 106 |
| 107 private: | 107 private: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 132 bool expect_set_history_length_and_prune_; | 132 bool expect_set_history_length_and_prune_; |
| 133 scoped_refptr<const SiteInstanceImpl> | 133 scoped_refptr<const SiteInstanceImpl> |
| 134 expect_set_history_length_and_prune_site_instance_; | 134 expect_set_history_length_and_prune_site_instance_; |
| 135 int expect_set_history_length_and_prune_history_length_; | 135 int expect_set_history_length_and_prune_history_length_; |
| 136 int32 expect_set_history_length_and_prune_min_page_id_; | 136 int32 expect_set_history_length_and_prune_min_page_id_; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace content | 139 } // namespace content |
| 140 | 140 |
| 141 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 141 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| OLD | NEW |