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

Side by Side Diff: ash/test/ash_test_impl_aura.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/test/ash_test_impl.h ('k') | ash/test/ash_test_impl_aura.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_AURA_H_
6 #define ASH_MUS_TEST_ASH_TEST_IMPL_AURA_H_
7
8 #include "ash/test/ash_test_impl.h"
9
10 namespace ash {
11 namespace test {
12 class AshTestBase;
13 }
14
15 // Implementation of AshTestImpl on top of aura. Implementation of AshTestImpl
16 // calls through to AshTestBase.
17 class AshTestImplAura : public AshTestImpl {
18 public:
19 AshTestImplAura();
20 ~AshTestImplAura() override;
21
22 // AshTestImpl:
23 void SetUp() override;
24 void TearDown() override;
25 void UpdateDisplay(const std::string& display_spec) override;
26 std::unique_ptr<WindowOwner> CreateTestWindow(
27 const gfx::Rect& bounds_in_screen,
28 ui::wm::WindowType type,
29 int shell_window_id) override;
30 std::unique_ptr<WindowOwner> CreateToplevelTestWindow(
31 const gfx::Rect& bounds_in_screen,
32 int shell_window_id) override;
33 display::Display GetSecondaryDisplay() override;
34 bool SetSecondaryDisplayPlacement(
35 display::DisplayPlacement::Position position,
36 int offset) override;
37 void ConfigureWidgetInitParamsForDisplay(
38 WmWindow* window,
39 views::Widget::InitParams* init_params) override;
40 void AddTransientChild(WmWindow* parent, WmWindow* window) override;
41
42 private:
43 std::unique_ptr<test::AshTestBase> ash_test_base_;
44
45 DISALLOW_COPY_AND_ASSIGN(AshTestImplAura);
46 };
47
48 } // namespace ash
49
50 #endif // ASH_MUS_TEST_ASH_TEST_IMPL_AURA_H_
OLDNEW
« no previous file with comments | « ash/test/ash_test_impl.h ('k') | ash/test/ash_test_impl_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698