| Index: ash/test/ash_md_test_base.h
|
| diff --git a/ash/test/ash_md_test_base.h b/ash/test/ash_md_test_base.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..51a6186d09399b4b2184985417f7e18320a8af94
|
| --- /dev/null
|
| +++ b/ash/test/ash_md_test_base.h
|
| @@ -0,0 +1,41 @@
|
| +// 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_ASH_MD_TEST_BASE_H_
|
| +#define ASH_TEST_ASH_MD_TEST_BASE_H_
|
| +
|
| +#include "ash/common/material_design/material_design_controller.h"
|
| +#include "ash/test/ash_test_base.h"
|
| +#include "ash/test/material_design_controller_test_api.h"
|
| +
|
| +namespace ash {
|
| +namespace test {
|
| +
|
| +class AshMDTestBase
|
| + : public AshTestBase,
|
| + public testing::WithParamInterface<ash::MaterialDesignController::Mode> {
|
| + public:
|
| + AshMDTestBase();
|
| + ~AshMDTestBase() override;
|
| +
|
| + // AshTestBase:
|
| + void SetUp() override;
|
| + void TearDown() override;
|
| +
|
| + int GetMdMaximizedWindowHeightOffset();
|
| +
|
| + private:
|
| + std::unique_ptr<MaterialDesignControllerTestAPI> material_design_state_;
|
| +
|
| + // The material design shelf is taller (by 1px) so use this offset to
|
| + // adjust the expected height of a maximized window.
|
| + int md_maximized_window_height_offset_ = 0;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AshMDTestBase);
|
| +};
|
| +
|
| +} // namespace test
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_TEST_ASH_MD_TEST_BASE_H_
|
|
|