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 namespace ash { | |
8 namespace test { | |
9 | |
10 AshMDTestBase::AshMDTestBase() | |
11 : md_maximized_window_height_offset_(0) { | |
James Cook
2016/06/16 16:08:56
nit: init in header
tdanderson
2016/06/21 19:52:21
Can you clarify what you mean here? Inlining a cto
James Cook
2016/06/21 22:17:54
I mean "int md_maximized_window_height_offset_ = 0
tdanderson
2016/06/22 16:51:55
Done.
| |
12 } | |
13 | |
14 AshMDTestBase::~AshMDTestBase() { | |
15 } | |
16 | |
17 void AshMDTestBase::SetUp() { | |
18 test::AshTestBase::SetUp(); | |
19 material_design_state_.reset( | |
20 new test::MaterialDesignControllerTestAPI(GetParam())); | |
21 md_maximized_window_height_offset_ = | |
22 ash::MaterialDesignController::IsMaterial() ? -1 : 0; | |
James Cook
2016/06/16 16:08:56
optional: maybe compute this based on the constant
tdanderson
2016/06/21 19:52:21
This is a great idea, done.
| |
23 } | |
24 | |
25 void AshMDTestBase::TearDown() { | |
26 material_design_state_.reset(); | |
27 test::AshTestBase::TearDown(); | |
28 } | |
29 | |
30 int AshMDTestBase::GetMdMaximizedWindowHeightOffset() { | |
31 return md_maximized_window_height_offset_; | |
32 } | |
33 | |
34 } // namespace test | |
35 } // namespace ash | |
OLD | NEW |