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

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

Issue 2420783002: mustash: Convert TraySupervisedUserTest to AshTest (Closed)
Patch Set: rebase 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/ash_test.h ('k') | ash/common/test/test_system_tray_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/ash_test.cc
diff --git a/ash/common/test/ash_test.cc b/ash/common/test/ash_test.cc
index 32744b9c82da250a983050b173c90ad0847995bc..7a1c905d0492a1ad666007052c2b830e78b3c24a 100644
--- a/ash/common/test/ash_test.cc
+++ b/ash/common/test/ash_test.cc
@@ -8,6 +8,7 @@
#include "ash/common/system/status_area_widget.h"
#include "ash/common/test/ash_test_impl.h"
#include "ash/common/test/test_session_state_delegate.h"
+#include "ash/common/test/test_system_tray_delegate.h"
#include "ash/common/wm_root_window_controller.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
@@ -40,6 +41,12 @@ SystemTray* AshTest::GetPrimarySystemTray() {
return GetPrimaryShelf()->GetStatusAreaWidget()->system_tray();
}
+// static
+test::TestSystemTrayDelegate* AshTest::GetSystemTrayDelegate() {
+ return static_cast<test::TestSystemTrayDelegate*>(
+ WmShell::Get()->system_tray_delegate());
+}
+
bool AshTest::SupportsMultipleDisplays() const {
return test_impl_->SupportsMultipleDisplays();
}
« no previous file with comments | « ash/common/test/ash_test.h ('k') | ash/common/test/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698