| // Copyright 2019 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. |
| |
| #include "ash/wm/pip/pip_test_utils.h" |
| |
| #include "ash/root_window_controller.h" |
| #include "ash/shelf/shelf.h" |
| #include "ash/shell.h" |
| |
| namespace ash { |
| |
| void ForceHideShelvesForTest() { |
| for (auto* root_window_controller : Shell::GetAllRootWindowControllers()) { |
| auto* shelf = root_window_controller->shelf(); |
| shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_ALWAYS_HIDDEN); |
| } |
| } |
| |
| } // namespace ash |