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

Side by Side Diff: components/test_runner/layout_test_runtime_flags.h

Issue 2043923002: Replicate more dump_foo layout test runtime flags across OOPIFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicate-can-open-windows
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_
6 #define COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ 6 #define COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // renderer processes). This flag is trying to prevent different renderer 163 // renderer processes). This flag is trying to prevent different renderer
164 // processes from tracking different top loading frames (i.e. main frame in 164 // processes from tracking different top loading frames (i.e. main frame in
165 // one renderer and an OOPIF in another renderer). 165 // one renderer and an OOPIF in another renderer).
166 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(have_top_loading_frame) 166 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(have_top_loading_frame)
167 167
168 // If true, new windows can be opened via javascript or by plugins. By 168 // If true, new windows can be opened via javascript or by plugins. By
169 // default, set to false and can be toggled to true using 169 // default, set to false and can be toggled to true using
170 // setCanOpenWindows(). 170 // setCanOpenWindows().
171 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(can_open_windows) 171 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(can_open_windows)
172 172
173 // If true, output a descriptive line each time WebViewClient::createView
174 // is invoked.
175 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_create_view)
176
177 // If true, the test_shell will dump all changes to window.status.
178 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_window_status_changes)
179
180 // If true, the test_shell will output descriptive test for spellcheck
181 // execution.
182 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_spell_check_callbacks)
183
173 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG 184 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG
174 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG 185 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG
175 186
176 // Reports whether recursing over child frames is necessary. 187 // Reports whether recursing over child frames is necessary.
177 bool dump_child_frames() const { 188 bool dump_child_frames() const {
178 if (dump_as_text()) 189 if (dump_as_text())
179 return dump_child_frames_as_text(); 190 return dump_child_frames_as_text();
180 else if (dump_as_markup()) 191 else if (dump_as_markup())
181 return dump_child_frames_as_markup(); 192 return dump_child_frames_as_markup();
182 else 193 else
183 return dump_child_frame_scroll_positions(); 194 return dump_child_frame_scroll_positions();
184 } 195 }
185 196
186 private: 197 private:
187 TrackedDictionary dict_; 198 TrackedDictionary dict_;
188 199
189 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); 200 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags);
190 }; 201 };
191 202
192 } // namespace test_runner 203 } // namespace test_runner
193 204
194 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ 205 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/layout_test_runtime_flags.cc » ('j') | components/test_runner/test_runner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698