OLD | NEW |
---|---|
(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 #include "ash/test/ash_md_test_base.h" | |
6 | |
7 #include "ash/common/shelf/shelf_constants.h" | |
8 #include "ash/test/material_design_controller_test_api.h" | |
9 | |
10 namespace ash { | |
11 namespace test { | |
12 | |
13 AshMDTestBase::AshMDTestBase() : md_maximized_window_height_offset_(0) {} | |
14 | |
15 AshMDTestBase::~AshMDTestBase() {} | |
16 | |
17 void AshMDTestBase::SetUp() { | |
18 AshTestBase::SetUp(); | |
19 const int default_shelf_size = GetShelfConstant(SHELF_SIZE); | |
20 material_design_state_.reset( | |
21 new test::MaterialDesignControllerTestAPI(GetParam())); | |
22 const int md_state_shelf_size = GetShelfConstant(SHELF_SIZE); | |
23 md_maximized_window_height_offset_ = default_shelf_size - md_state_shelf_size; | |
James Cook
2016/06/21 22:17:54
Nice.
| |
24 } | |
25 | |
26 void AshMDTestBase::TearDown() { | |
27 material_design_state_.reset(); | |
28 AshTestBase::TearDown(); | |
29 } | |
30 | |
31 int AshMDTestBase::GetMdMaximizedWindowHeightOffset() { | |
32 return md_maximized_window_height_offset_; | |
33 } | |
34 | |
35 } // namespace test | |
36 } // namespace ash | |
OLD | NEW |