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

Unified Diff: ash/common/test/wm_shell_test_api.cc

Issue 2408273002: mash: Port TrayUpdateTest to AshTest (Closed)
Patch Set: WmShellTestApi 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/test/wm_shell_test_api.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/wm_shell_test_api.cc
diff --git a/ash/common/test/wm_shell_test_api.cc b/ash/common/test/wm_shell_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..39305eaf885b3a2a08b839fb8c795b02124b8044
--- /dev/null
+++ b/ash/common/test/wm_shell_test_api.cc
@@ -0,0 +1,21 @@
+// 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.
+
+#include "ash/common/test/wm_shell_test_api.h"
+
+#include "ash/common/system/tray/system_tray_delegate.h"
+#include "ash/common/wm_shell.h"
+
+namespace ash {
+
+WmShellTestApi::WmShellTestApi() {}
+
+WmShellTestApi::~WmShellTestApi() {}
+
+void WmShellTestApi::SetSystemTrayDelegate(
+ std::unique_ptr<SystemTrayDelegate> delegate) {
+ WmShell::Get()->SetSystemTrayDelegate(std::move(delegate));
+}
+
+} // namespace ash
« no previous file with comments | « ash/common/test/wm_shell_test_api.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698