Index: ash/test/test_session_state_delegate.cc |
diff --git a/ash/test/test_session_state_delegate.cc b/ash/test/test_session_state_delegate.cc |
index 881f4982e04bd3f10c09f30ee125ca59f4c5c305..1eb84e0aea4723c9ad7ddaab0cc6801e5e791e65 100644 |
--- a/ash/test/test_session_state_delegate.cc |
+++ b/ash/test/test_session_state_delegate.cc |
@@ -4,6 +4,9 @@ |
#include "ash/test/test_session_state_delegate.h" |
+#include "base/string16.h" |
+#include "base/utf_string_conversions.h" |
+ |
namespace ash { |
namespace test { |
@@ -17,8 +20,9 @@ TestSessionStateDelegate::TestSessionStateDelegate() |
TestSessionStateDelegate::~TestSessionStateDelegate() { |
} |
-bool TestSessionStateDelegate::HasActiveUser() const { |
- return has_active_user_; |
+int TestSessionStateDelegate::NumberOfLoggedInUsers() const { |
+ // TODO(skuhne): Add better test framework to test multiple profiles. |
+ return has_active_user_ ? 1 : 0; |
} |
bool TestSessionStateDelegate::IsActiveUserSessionStarted() const { |
@@ -59,5 +63,27 @@ void TestSessionStateDelegate::SetCanLockScreen(bool can_lock_screen) { |
can_lock_screen_ = can_lock_screen; |
} |
+const base::string16 TestSessionStateDelegate::GetUserDisplayName( |
+ ash::MultiProfileIndex index) const { |
+ return UTF8ToUTF16("Über tray Über tray Über tray Über tray"); |
+} |
+ |
+const std::string TestSessionStateDelegate::GetUserEmail( |
+ ash::MultiProfileIndex index) const { |
+ return "über@tray"; |
+} |
+ |
+const gfx::ImageSkia& TestSessionStateDelegate::GetUserImage( |
+ ash::MultiProfileIndex index) const { |
+ return null_image_; |
+} |
+ |
+void TestSessionStateDelegate::GetLoggedInUsers(UserEmailList* users) { |
+} |
+ |
+void TestSessionStateDelegate::SwitchActiveUser(const std::string& email) { |
+} |
+ |
+ |
} // namespace test |
} // namespace ash |