Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: content/test/test_web_contents.h

Issue 1194383003: Add a flag showing whether the current request was ignored by a handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failures (DidFailProvisionalLoad calls in unit tests) Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/test_web_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/test_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698