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

Unified Diff: components/mus/public/cpp/tests/test_window_tree_client_setup.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/mus/public/cpp/tests/test_window_tree_client_setup.h
diff --git a/components/mus/public/cpp/tests/test_window_tree_client_setup.h b/components/mus/public/cpp/tests/test_window_tree_client_setup.h
deleted file mode 100644
index 9ff93469cf25b14199bdeaa2ff17aae59c040da8..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/tests/test_window_tree_client_setup.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_CLIENT_SETUP_H_
-#define COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_CLIENT_SETUP_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "components/mus/public/cpp/window_tree_client_observer.h"
-
-namespace display {
-class Display;
-}
-
-namespace mus {
-
-class TestWindowTree;
-class WindowManagerDelegate;
-class WindowTreeClient;
-class WindowTreeClientDelegate;
-
-// TestWindowTreeClientSetup is used to create a WindowTreeClient that is not
-// connected to mus.
-class TestWindowTreeClientSetup : public mus::WindowTreeClientObserver {
- public:
- TestWindowTreeClientSetup();
- ~TestWindowTreeClientSetup() override;
-
- // Initializes the WindowTreeClient.
- void Init(WindowTreeClientDelegate* window_tree_delegate);
- void InitForWindowManager(WindowTreeClientDelegate* window_tree_delegate,
- WindowManagerDelegate* window_manager_delegate,
- const display::Display& display);
-
- // The WindowTree that WindowTreeClient talks to.
- TestWindowTree* window_tree() { return window_tree_.get(); }
-
- WindowTreeClient* window_tree_client();
-
- private:
- // Called by both implementations of init to perform common initialization.
- void CommonInit(WindowTreeClientDelegate* window_tree_delegate,
- WindowManagerDelegate* window_manager_delegate);
-
- // mus::WindowTreeClientObserver:
- void OnDidDestroyClient(mus::WindowTreeClient* client) override;
-
- std::unique_ptr<TestWindowTree> window_tree_;
-
- // See description of WindowTreeClientDelegate for details on ownership. The
- // WindowTreeClient may be deleted during shutdown by the test. If not,
- // we own it and must delete it.
- std::unique_ptr<WindowTreeClient> window_tree_client_;
-
- DISALLOW_COPY_AND_ASSIGN(TestWindowTreeClientSetup);
-};
-
-} // namespace mus
-
-#endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_CLIENT_SETUP_H_
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.cc ('k') | components/mus/public/cpp/tests/test_window_tree_client_setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698