OLD | NEW |
---|---|
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 // If true, output a message when the page title is changed. | 151 // If true, output a message when the page title is changed. |
152 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_title_changes) | 152 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_title_changes) |
153 | 153 |
154 // If true, the test_shell will print out the icon change notifications. | 154 // If true, the test_shell will print out the icon change notifications. |
155 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_icon_changes) | 155 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_icon_changes) |
156 | 156 |
157 // Desired return value of WebFrameClient::runModalBeforeUnloadDialog. | 157 // Desired return value of WebFrameClient::runModalBeforeUnloadDialog. |
158 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG( | 158 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG( |
159 stay_on_page_after_handling_before_unload) | 159 stay_on_page_after_handling_before_unload) |
160 | 160 |
161 // Flag to try to prevent different renderer processes tracking | |
162 // different top loading frames. | |
163 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(have_top_loading_frame) | |
jochen (gone - plz use gerrit)
2016/04/27 12:00:51
maybe track_top_loading_frame_in_this_process?
Łukasz Anforowicz
2016/04/27 22:59:02
I've expanded the comment to try to clarify the me
| |
164 | |
161 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG | 165 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG |
162 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG | 166 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG |
163 | 167 |
164 // Reports whether recursing over child frames is necessary. | 168 // Reports whether recursing over child frames is necessary. |
165 bool dump_child_frames() const { | 169 bool dump_child_frames() const { |
166 if (dump_as_text()) | 170 if (dump_as_text()) |
167 return dump_child_frames_as_text(); | 171 return dump_child_frames_as_text(); |
168 else if (dump_as_markup()) | 172 else if (dump_as_markup()) |
169 return dump_child_frames_as_markup(); | 173 return dump_child_frames_as_markup(); |
170 else | 174 else |
171 return dump_child_frame_scroll_positions(); | 175 return dump_child_frame_scroll_positions(); |
172 } | 176 } |
173 | 177 |
174 private: | 178 private: |
175 TrackedDictionary dict_; | 179 TrackedDictionary dict_; |
176 | 180 |
177 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); | 181 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); |
178 }; | 182 }; |
179 | 183 |
180 } // namespace test_runner | 184 } // namespace test_runner |
181 | 185 |
182 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 186 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
OLD | NEW |