blob: a018f8b7b475940feb5031c056d7aeba7112e651 [file] [log] [blame]
// Copyright 2016 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.
#ifndef ASH_TEST_WM_WINDOW_TEST_API_H_
#define ASH_TEST_WM_WINDOW_TEST_API_H_
#include "ash/wm_window.h"
namespace ash {
class WmWindowTestApi {
public:
// Used by tests to set the default value of
// |WmWindow::default_use_empty_minimum_size_for_testing_|. This is needed
// as tests don't have a good way to reset the value of
// |use_empty_minimum_size_for_testing_| before the minimum size is queried.
class GlobalMinimumSizeLock {
public:
GlobalMinimumSizeLock();
~GlobalMinimumSizeLock();
private:
// Number of instances of GlobalMinimumSizeLock that have been created.
static int instance_count_;
DISALLOW_COPY_AND_ASSIGN(GlobalMinimumSizeLock);
};
WmWindowTestApi() {}
~WmWindowTestApi() {}
private:
static void SetDefaultUseEmptyMinimumSizeForTesting(bool value);
DISALLOW_COPY_AND_ASSIGN(WmWindowTestApi);
};
} // namespace ash
#endif // ASH_TEST_WM_WINDOW_TEST_API_H_