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

Side by Side Diff: ash/common/test/ash_test_impl.h

Issue 2391153002: Converts most of WorkspaceLayoutManager tests to use common code (Closed)
Patch Set: merge Created 4 years, 2 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/common/test/ash_test.cc ('k') | ash/common/wm/default_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_TEST_ASH_TEST_IMPL_H_ 5 #ifndef ASH_COMMON_TEST_ASH_TEST_IMPL_H_
6 #define ASH_COMMON_TEST_ASH_TEST_IMPL_H_ 6 #define ASH_COMMON_TEST_ASH_TEST_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // These functions mirror that of AshTest, see it for details. 37 // These functions mirror that of AshTest, see it for details.
38 virtual void SetUp() = 0; 38 virtual void SetUp() = 0;
39 virtual void TearDown() = 0; 39 virtual void TearDown() = 0;
40 virtual bool SupportsMultipleDisplays() const = 0; 40 virtual bool SupportsMultipleDisplays() const = 0;
41 virtual void UpdateDisplay(const std::string& display_spec) = 0; 41 virtual void UpdateDisplay(const std::string& display_spec) = 0;
42 virtual std::unique_ptr<WindowOwner> CreateTestWindow( 42 virtual std::unique_ptr<WindowOwner> CreateTestWindow(
43 const gfx::Rect& bounds_in_screen, 43 const gfx::Rect& bounds_in_screen,
44 ui::wm::WindowType type, 44 ui::wm::WindowType type,
45 int shell_window_id) = 0; 45 int shell_window_id) = 0;
46 virtual std::unique_ptr<WindowOwner> CreateToplevelTestWindow(
47 const gfx::Rect& bounds_in_screen,
48 int shell_window_id) = 0;
46 virtual display::Display GetSecondaryDisplay() = 0; 49 virtual display::Display GetSecondaryDisplay() = 0;
47 virtual bool SetSecondaryDisplayPlacement( 50 virtual bool SetSecondaryDisplayPlacement(
48 display::DisplayPlacement::Position position, 51 display::DisplayPlacement::Position position,
49 int offset) = 0; 52 int offset) = 0;
53 virtual void ConfigureWidgetInitParamsForDisplay(
54 WmWindow* window,
55 views::Widget::InitParams* init_params) = 0;
56 virtual void AddTransientChild(WmWindow* parent, WmWindow* window) = 0;
50 }; 57 };
51 58
52 } // namespace ash 59 } // namespace ash
53 60
54 #endif // ASH_COMMON_TEST_ASH_TEST_IMPL_H_ 61 #endif // ASH_COMMON_TEST_ASH_TEST_IMPL_H_
OLDNEW
« no previous file with comments | « ash/common/test/ash_test.cc ('k') | ash/common/wm/default_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698