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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.h

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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
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_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void ResolveBeforeInstallPromptPromise( 150 void ResolveBeforeInstallPromptPromise(
151 int request_id, 151 int request_id,
152 const std::string& platform) override; 152 const std::string& platform) override;
153 blink::WebPlugin* CreatePluginPlaceholder( 153 blink::WebPlugin* CreatePluginPlaceholder(
154 blink::WebLocalFrame* frame, 154 blink::WebLocalFrame* frame,
155 const blink::WebPluginParams& params) override; 155 const blink::WebPluginParams& params) override;
156 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* proxy) override; 156 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* proxy) override;
157 blink::WebPoint ConvertDIPToNative( 157 blink::WebPoint ConvertDIPToNative(
158 const blink::WebPoint& point_in_dip) const override; 158 const blink::WebPoint& point_in_dip) const override;
159 159
160 void Reset(); 160 // Resets a RenderView to a known state for layout tests. It is used both when
161 // a RenderView is created and when reusing an existing RenderView for the
162 // next test case.
163 // When reusing an existing RenderView, |for_new_test| should be true, which
164 // also resets additional state, like the main frame's name and opener.
165 void Reset(bool for_new_test);
161 166
162 void set_proxy(test_runner::WebTestProxyBase* proxy) { proxy_ = proxy; } 167 void set_proxy(test_runner::WebTestProxyBase* proxy) { proxy_ = proxy; }
163 test_runner::WebTestProxyBase* proxy() const { return proxy_; } 168 test_runner::WebTestProxyBase* proxy() const { return proxy_; }
164 169
165 void ReportLeakDetectionResult(const LeakDetectionResult& result); 170 void ReportLeakDetectionResult(const LeakDetectionResult& result);
166 171
167 private: 172 private:
168 // Message handlers. 173 // Message handlers.
169 void OnSetTestConfiguration(const ShellTestConfiguration& params); 174 void OnSetTestConfiguration(const ShellTestConfiguration& params);
170 void OnSessionHistory( 175 void OnSessionHistory(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool focus_on_next_commit_; 210 bool focus_on_next_commit_;
206 211
207 scoped_ptr<LeakDetector> leak_detector_; 212 scoped_ptr<LeakDetector> leak_detector_;
208 213
209 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); 214 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner);
210 }; 215 };
211 216
212 } // namespace content 217 } // namespace content
213 218
214 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 219 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698