| 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 #include "components/test_runner/layout_test_runtime_flags.h" | 5 #include "components/test_runner/layout_test_runtime_flags.h" |
| 6 | 6 |
| 7 namespace test_runner { | 7 namespace test_runner { |
| 8 | 8 |
| 9 LayoutTestRuntimeFlags::LayoutTestRuntimeFlags() { | 9 LayoutTestRuntimeFlags::LayoutTestRuntimeFlags() { |
| 10 Reset(); | 10 Reset(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 void LayoutTestRuntimeFlags::Reset() { | 13 void LayoutTestRuntimeFlags::Reset() { |
| 14 set_generate_pixel_results(true); | 14 set_generate_pixel_results(true); |
| 15 | 15 |
| 16 set_dump_as_text(false); | 16 set_dump_as_text(false); |
| 17 set_dump_child_frames_as_text(false); | 17 set_dump_child_frames_as_text(false); |
| 18 | 18 |
| 19 set_dump_as_markup(false); | 19 set_dump_as_markup(false); |
| 20 set_dump_child_frames_as_markup(false); | 20 set_dump_child_frames_as_markup(false); |
| 21 | 21 |
| 22 set_dump_child_frame_scroll_positions(false); | 22 set_dump_child_frame_scroll_positions(false); |
| 23 | 23 |
| 24 set_is_printing(false); | 24 set_is_printing(false); |
| 25 | 25 |
| 26 set_wait_until_done(false); | 26 set_wait_until_done(false); |
| 27 | 27 |
| 28 set_accept_languages(""); |
| 29 |
| 28 // No need to report the initial state - only the future delta is important. | 30 // No need to report the initial state - only the future delta is important. |
| 29 tracked_dictionary().ResetChangeTracking(); | 31 tracked_dictionary().ResetChangeTracking(); |
| 30 } | 32 } |
| 31 | 33 |
| 32 } // namespace test_runner | 34 } // namespace test_runner |
| OLD | NEW |