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

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

Issue 2165693002: Fix tests in when MD is set to EXPERIMENTAL by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_TEST_ASH_MD_TEST_BASE_H_ 5 #ifndef ASH_TEST_ASH_MD_TEST_BASE_H_
6 #define ASH_TEST_ASH_MD_TEST_BASE_H_ 6 #define ASH_TEST_ASH_MD_TEST_BASE_H_
7 7
8 #include "ash/common/material_design/material_design_controller.h" 8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/test/material_design_controller_test_api.h" 10 #include "ash/test/material_design_controller_test_api.h"
11 11
12 namespace ash { 12 namespace ash {
13 namespace test { 13 namespace test {
14 14
15 class AshMDTestBase 15 class AshMDTestBase
16 : public AshTestBase, 16 : public AshTestBase,
17 public testing::WithParamInterface<ash::MaterialDesignController::Mode> { 17 public testing::WithParamInterface<ash::MaterialDesignController::Mode> {
18 public: 18 public:
19 AshMDTestBase(); 19 AshMDTestBase();
20 ~AshMDTestBase() override; 20 ~AshMDTestBase() override;
21 21
22 // AshTestBase: 22 // AshTestBase:
23 void SetUp() override; 23 void SetUp() override;
24 void TearDown() override; 24 void TearDown() override;
25 25
26 int GetMdMaximizedWindowHeightOffset(); 26 int GetMdMaximizedWindowHeightOffset();
27 int GetMdAutoHiddenShelfHeightOffset();
27 28
28 private: 29 private:
29 std::unique_ptr<MaterialDesignControllerTestAPI> material_design_state_; 30 std::unique_ptr<MaterialDesignControllerTestAPI> material_design_state_;
30 31
31 // The material design shelf is taller (by 1px) so use this offset to 32 // The material design shelf is taller (by 1px) so use this offset to
32 // adjust the expected height of a maximized window. 33 // adjust the expected height of a maximized window.
33 int md_maximized_window_height_offset_ = 0; 34 int md_maximized_window_height_offset_ = 0;
34 35
36 // The material design auto hidden shelf is shorter (by 3) so use this offset
37 // to adjust the display/root window size.
38 int md_auto_hidden_shelf_height_offset_ = 0;
39
35 DISALLOW_COPY_AND_ASSIGN(AshMDTestBase); 40 DISALLOW_COPY_AND_ASSIGN(AshMDTestBase);
36 }; 41 };
37 42
38 } // namespace test 43 } // namespace test
39 } // namespace ash 44 } // namespace ash
40 45
41 #endif // ASH_TEST_ASH_MD_TEST_BASE_H_ 46 #endif // ASH_TEST_ASH_MD_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698