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

Side by Side Diff: ash/mus/test/ash_test_impl_mus.h

Issue 2847283002: chromeos: convert remaining AshTest usage to AshTestBase (Closed)
Patch Set: comment Created 3 years, 7 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
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/test/ash_test_impl_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MUS_TEST_ASH_TEST_IMPL_MUS_H_
6 #define ASH_MUS_TEST_ASH_TEST_IMPL_MUS_H_
7
8 #include "ash/mus/test/wm_test_base.h"
9 #include "ash/test/ash_test_impl.h"
10 #include "base/macros.h"
11
12 namespace ash {
13 namespace mus {
14
15 class WmTestBase;
16
17 // Implementation of AshTestImpl for mus.
18 class AshTestImplMus : public AshTestImpl {
19 public:
20 AshTestImplMus();
21 ~AshTestImplMus() override;
22
23 // AshTestImpl:
24 void SetUp() override;
25 void TearDown() override;
26 void UpdateDisplay(const std::string& display_spec) override;
27 std::unique_ptr<WindowOwner> CreateTestWindow(
28 const gfx::Rect& bounds_in_screen,
29 ui::wm::WindowType type,
30 int shell_window_id) override;
31 std::unique_ptr<WindowOwner> CreateToplevelTestWindow(
32 const gfx::Rect& bounds_in_screen,
33 int shell_window_id) override;
34 display::Display GetSecondaryDisplay() override;
35 bool SetSecondaryDisplayPlacement(
36 display::DisplayPlacement::Position position,
37 int offset) override;
38 void ConfigureWidgetInitParamsForDisplay(
39 WmWindow* window,
40 views::Widget::InitParams* init_params) override;
41 void AddTransientChild(WmWindow* parent, WmWindow* window) override;
42
43 private:
44 // TODO(sky): fold WmTestBase directly into this class when no more subclasses
45 // of WmTestBase.
46 std::unique_ptr<WmTestBase> wm_test_base_;
47
48 DISALLOW_COPY_AND_ASSIGN(AshTestImplMus);
49 };
50
51 } // namespace mus
52 } // namespace ash
53
54 #endif // ASH_MUS_TEST_ASH_TEST_IMPL_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/test/ash_test_impl_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698