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

Side by Side Diff: services/ui/public/cpp/tests/test_window_tree_client_setup.h

Issue 2651593002: mus: Remove the old client lib. (Closed)
Patch Set: restore test Created 3 years, 11 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
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 SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_CLIENT_SETUP_H_
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_CLIENT_SETUP_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11
12 namespace ui {
13
14 class TestWindowTree;
15 class WindowManagerDelegate;
16 class WindowTreeClient;
17 class WindowTreeClientDelegate;
18
19 // TestWindowTreeClientSetup is used to create a WindowTreeClient that is not
20 // connected to mus.
21 class TestWindowTreeClientSetup {
22 public:
23 TestWindowTreeClientSetup();
24 ~TestWindowTreeClientSetup();
25
26 // Initializes the WindowTreeClient.
27 void Init(WindowTreeClientDelegate* window_tree_delegate);
28 void InitForWindowManager(WindowTreeClientDelegate* window_tree_delegate,
29 WindowManagerDelegate* window_manager_delegate);
30
31 // The WindowTree that WindowTreeClient talks to.
32 TestWindowTree* window_tree() { return window_tree_.get(); }
33
34 // Returns ownership of WindowTreeClient to the caller.
35 std::unique_ptr<WindowTreeClient> OwnWindowTreeClient();
36
37 WindowTreeClient* window_tree_client();
38
39 private:
40 // Called by both implementations of init to perform common initialization.
41 void CommonInit(WindowTreeClientDelegate* window_tree_delegate,
42 WindowManagerDelegate* window_manager_delegate);
43
44 std::unique_ptr<TestWindowTree> window_tree_;
45
46 std::unique_ptr<WindowTreeClient> window_tree_client_;
47
48 DISALLOW_COPY_AND_ASSIGN(TestWindowTreeClientSetup);
49 };
50
51 } // namespace ui
52
53 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_CLIENT_SETUP_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.cc ('k') | services/ui/public/cpp/tests/test_window_tree_client_setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698