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 <string> | 8 #include <string> |
9 | 9 |
10 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 int history_length); | 93 int history_length); |
94 | 94 |
95 // Compares the arguments passed in with the expected arguments passed in | 95 // Compares the arguments passed in with the expected arguments passed in |
96 // to |ExpectSetHistoryOffsetAndLength()|. | 96 // to |ExpectSetHistoryOffsetAndLength()|. |
97 void SetHistoryOffsetAndLength(int history_offset, | 97 void SetHistoryOffsetAndLength(int history_offset, |
98 int history_length) override; | 98 int history_length) override; |
99 | 99 |
100 void TestDidFinishLoad(const GURL& url); | 100 void TestDidFinishLoad(const GURL& url); |
101 void TestDidFailLoadWithError(const GURL& url, | 101 void TestDidFailLoadWithError(const GURL& url, |
102 int error_code, | 102 int error_code, |
103 const base::string16& error_description); | 103 const base::string16& error_description, |
| 104 bool was_ignored_by_handler); |
104 | 105 |
105 protected: | 106 protected: |
106 // The deprecated WebContentsTester still needs to subclass this. | 107 // The deprecated WebContentsTester still needs to subclass this. |
107 explicit TestWebContents(BrowserContext* browser_context); | 108 explicit TestWebContents(BrowserContext* browser_context); |
108 | 109 |
109 private: | 110 private: |
110 // WebContentsImpl overrides | 111 // WebContentsImpl overrides |
111 void CreateNewWindow( | 112 void CreateNewWindow( |
112 int render_process_id, | 113 int render_process_id, |
113 int route_id, | 114 int route_id, |
(...skipping 19 matching lines...) Expand all Loading... |
133 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 134 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
134 bool expect_set_history_offset_and_length_; | 135 bool expect_set_history_offset_and_length_; |
135 int expect_set_history_offset_and_length_history_offset_; | 136 int expect_set_history_offset_and_length_history_offset_; |
136 int expect_set_history_offset_and_length_history_length_; | 137 int expect_set_history_offset_and_length_history_length_; |
137 std::string save_frame_headers_; | 138 std::string save_frame_headers_; |
138 }; | 139 }; |
139 | 140 |
140 } // namespace content | 141 } // namespace content |
141 | 142 |
142 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 143 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
OLD | NEW |