| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_TEST_WM_WINDOW_TEST_API_H_ | |
| 6 #define ASH_TEST_WM_WINDOW_TEST_API_H_ | |
| 7 | |
| 8 #include "ash/wm_window.h" | |
| 9 | |
| 10 namespace ash { | |
| 11 | |
| 12 class WmWindowTestApi { | |
| 13 public: | |
| 14 // Used by tests to set the default value of | |
| 15 // |WmWindow::default_use_empty_minimum_size_for_testing_|. This is needed | |
| 16 // as tests don't have a good way to reset the value of | |
| 17 // |use_empty_minimum_size_for_testing_| before the minimum size is queried. | |
| 18 class GlobalMinimumSizeLock { | |
| 19 public: | |
| 20 GlobalMinimumSizeLock(); | |
| 21 ~GlobalMinimumSizeLock(); | |
| 22 | |
| 23 private: | |
| 24 // Number of instances of GlobalMinimumSizeLock that have been created. | |
| 25 static int instance_count_; | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(GlobalMinimumSizeLock); | |
| 28 }; | |
| 29 | |
| 30 WmWindowTestApi() {} | |
| 31 ~WmWindowTestApi() {} | |
| 32 | |
| 33 private: | |
| 34 static void SetDefaultUseEmptyMinimumSizeForTesting(bool value); | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(WmWindowTestApi); | |
| 37 }; | |
| 38 | |
| 39 } // namespace ash | |
| 40 | |
| 41 #endif // ASH_TEST_WM_WINDOW_TEST_API_H_ | |
| OLD | NEW |