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

Unified Diff: ash/test/ash_test_base.cc

Issue 108213009: Adds TraySessionLengthLimitTest to ash_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ASH_EXPORT to SessionLengthLimitObserver Created 7 years 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/test/ash_test_base.h ('k') | ash/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/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 335972d40be871c084728ce7a99fb24b10662115..30ca1be45ad08e01873511d3c4deb6dfd7d9505c 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -16,6 +16,7 @@
#include "ash/test/display_manager_test_api.h"
#include "ash/test/test_session_state_delegate.h"
#include "ash/test/test_shell_delegate.h"
+#include "ash/test/test_system_tray_delegate.h"
#include "ash/wm/coordinate_conversion.h"
#include "ash/wm/window_positioner.h"
#include "base/command_line.h"
@@ -286,6 +287,11 @@ TestScreenshotDelegate* AshTestBase::GetScreenshotDelegate() {
return ash_test_helper_->test_screenshot_delegate();
}
+TestSystemTrayDelegate* AshTestBase::GetSystemTrayDelegate() {
+ return static_cast<TestSystemTrayDelegate*>(
+ Shell::GetInstance()->system_tray_delegate());
+}
+
void AshTestBase::SetSessionStarted(bool session_started) {
ash_test_helper_->test_shell_delegate()->test_session_state_delegate()->
SetActiveUserSessionStarted(session_started);
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698