Chromium Code Reviews| Index: ash/mus/bridge/wm_window_mus_test_api.h |
| diff --git a/ash/mus/bridge/wm_window_mus_test_api.h b/ash/mus/bridge/wm_window_mus_test_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..85b4a5f8b8d84a195159e9b339077e5426c977d8 |
| --- /dev/null |
| +++ b/ash/mus/bridge/wm_window_mus_test_api.h |
| @@ -0,0 +1,33 @@ |
| +// 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_MUS_BRIDGE_WM_WINDOW_MUS_TEST_API_H_ |
| +#define ASH_MUS_BRIDGE_WM_WINDOW_MUS_TEST_API_H_ |
| + |
| +#include "ash/mus/bridge/wm_window_mus.h" |
| + |
| +namespace ash { |
| +namespace mus { |
| + |
| +class WmWindowMusTestApi { |
| + public: |
| + WmWindowMusTestApi(WmWindow* window) |
|
James Cook
2016/08/09 00:37:10
nit: explicit
sky
2016/08/09 13:16:48
Done.
|
| + : WmWindowMusTestApi(WmWindowMus::AsWmWindowMus(window)) {} |
| + WmWindowMusTestApi(WmWindowMus* window) : window_(window) {} |
|
James Cook
2016/08/09 00:37:10
ditto
sky
2016/08/09 13:16:48
Done.
|
| + ~WmWindowMusTestApi() {} |
| + |
| + void set_use_empty_minimum_size(bool value) { |
| + window_->use_empty_minimum_size_ = true; |
| + } |
| + |
| + private: |
| + WmWindowMus* window_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(WmWindowMusTestApi); |
| +}; |
| + |
| +} // namespace mus |
| +} // namespace ash |
| + |
| +#endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_TEST_API_H_ |