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

Unified Diff: ui/views/mus/test_utils.h

Issue 2471033005: Adds DesktopWindowTreeHostMus (Closed)
Patch Set: fix Created 4 years, 1 month 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: ui/views/mus/test_utils.h
diff --git a/ui/views/mus/test_utils.h b/ui/views/mus/test_utils.h
index 6bcb68d42b16c440a329ea8ab99e49732424422a..c4d21ee8a424e212d2905357ba45895983696c63 100644
--- a/ui/views/mus/test_utils.h
+++ b/ui/views/mus/test_utils.h
@@ -5,6 +5,8 @@
#ifndef UI_VIEWS_MUS_TEST_UTILS_H_
#define UI_VIEWS_MUS_TEST_UTILS_H_
+#include "base/memory/ptr_util.h"
+#include "ui/views/mus/mus_client.h"
#include "ui/views/mus/window_manager_connection.h"
namespace views {
@@ -28,6 +30,18 @@ class WindowManagerConnectionTestApi {
DISALLOW_COPY_AND_ASSIGN(WindowManagerConnectionTestApi);
};
+class MusClientTestApi {
+ public:
+ static std::unique_ptr<MusClient> Create(
+ service_manager::Connector* connector,
+ const service_manager::Identity& identity) {
+ return base::WrapUnique(new MusClient(connector, identity));
+ }
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(MusClientTestApi);
+};
+
} // namespace test
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698