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

Unified Diff: ash/test/test_system_tray_delegate.cc

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « ash/test/test_system_tray_delegate.h ('k') | chrome/browser/ui/ash/session_controller_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_system_tray_delegate.cc
diff --git a/ash/test/test_system_tray_delegate.cc b/ash/test/test_system_tray_delegate.cc
index 9e47cc9eebc9bcdf70d9b9b74ebf17a703bd027e..f14d374e9f95d65fa60b2edecce30a4c62dfa82f 100644
--- a/ash/test/test_system_tray_delegate.cc
+++ b/ash/test/test_system_tray_delegate.cc
@@ -4,11 +4,6 @@
#include "ash/test/test_system_tray_delegate.h"
-#include <string>
-
-#include "ash/shell.h"
-#include "base/time/time.h"
-
namespace ash {
namespace test {
@@ -16,16 +11,6 @@ TestSystemTrayDelegate::TestSystemTrayDelegate() = default;
TestSystemTrayDelegate::~TestSystemTrayDelegate() = default;
-void TestSystemTrayDelegate::SetSessionLengthLimitForTest(
- const base::TimeDelta& new_limit) {
- session_length_limit_ = new_limit;
- session_length_limit_set_ = true;
-}
-
-void TestSystemTrayDelegate::ClearSessionLengthLimit() {
- session_length_limit_set_ = false;
-}
-
void TestSystemTrayDelegate::SetCurrentIME(const IMEInfo& info) {
current_ime_ = info;
}
@@ -34,22 +19,6 @@ void TestSystemTrayDelegate::SetAvailableIMEList(const IMEInfoList& list) {
ime_list_ = list;
}
-bool TestSystemTrayDelegate::GetSessionStartTime(
- base::TimeTicks* session_start_time) {
- // Just returns TimeTicks::Now(), so the remaining time is always the
- // specified limit. This is useful for testing.
- if (session_length_limit_set_)
- *session_start_time = base::TimeTicks::Now();
- return session_length_limit_set_;
-}
-
-bool TestSystemTrayDelegate::GetSessionLengthLimit(
- base::TimeDelta* session_length_limit) {
- if (session_length_limit_set_)
- *session_length_limit = session_length_limit_;
- return session_length_limit_set_;
-}
-
void TestSystemTrayDelegate::GetCurrentIME(IMEInfo* info) {
*info = current_ime_;
}
« no previous file with comments | « ash/test/test_system_tray_delegate.h ('k') | chrome/browser/ui/ash/session_controller_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698