Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: ash/test/ash_md_test_base.h

Issue 2067223003: Parameterize Ash unittests to pass with material design enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for further feedback Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_ASH_MD_TEST_BASE_H_
6 #define ASH_TEST_ASH_MD_TEST_BASE_H_
7
8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/test/ash_test_base.h"
10 #include "ash/test/material_design_controller_test_api.h"
11
12 namespace ash {
13 namespace test {
14
15 class AshMDTestBase
16 : public ash::test::AshTestBase,
James Cook 2016/06/16 16:08:56 nit: no ash::test::
tdanderson 2016/06/21 19:52:21 Done.
17 public testing::WithParamInterface<ash::MaterialDesignController::Mode> {
18 public:
19 AshMDTestBase();
20 ~AshMDTestBase() override;
21
22 // AshTestBase:
23 void SetUp() override;
24 void TearDown() override;
25
26 int GetMdMaximizedWindowHeightOffset();
27
28 private:
29 std::unique_ptr<MaterialDesignControllerTestAPI>
30 material_design_state_;
31
32 // The material design shelf is taller (by 1px) so use this offset to
33 // adjust the expected height of a maximized window.
34 int md_maximized_window_height_offset_;
35
36 DISALLOW_COPY_AND_ASSIGN(AshMDTestBase);
37 };
38
39 } // namespace test
40 } // namespace ash
41
42 #endif // ASH_TEST_ASH_MD_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698