blob: be2ff6b25ed17ef141833407c400c1a1c6cdd046 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace base {
class CommandLine;
enum class RunType {
// Indicates cleanup is happening before sharded tests are run.
// Indicates cleanup is happening after a test subprocess has timed out.
// Logs if there are any always on top windows, and if one is a system dialog
// closes it. |child_command_line|, if non-null, is the command line of the
// test subprocess that timed out. Additionally, if |run_type| is
// AFTER_TEST_TIMEOUT and an output directory is specified via
// --snapshot-output-dir=PATH, a snapshot of the screen is saved for analysis.
void KillAlwaysOnTopWindows(
RunType run_type,
const base::CommandLine* child_command_line = nullptr);