OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/test/test_session_state_delegate.h" | 5 #include "ash/test/test_session_state_delegate.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 void TestSessionStateDelegate::SetUserImage( | 127 void TestSessionStateDelegate::SetUserImage( |
128 const gfx::ImageSkia& user_image) { | 128 const gfx::ImageSkia& user_image) { |
129 user_image_ = user_image; | 129 user_image_ = user_image; |
130 } | 130 } |
131 | 131 |
132 const base::string16 TestSessionStateDelegate::GetUserDisplayName( | 132 const base::string16 TestSessionStateDelegate::GetUserDisplayName( |
133 MultiProfileIndex index) const { | 133 MultiProfileIndex index) const { |
134 return base::UTF8ToUTF16("Über tray Über tray Über tray Über tray"); | 134 return base::UTF8ToUTF16("Über tray Über tray Über tray Über tray"); |
135 } | 135 } |
136 | 136 |
| 137 const base::string16 TestSessionStateDelegate::GetUserGivenName( |
| 138 MultiProfileIndex index) const { |
| 139 return base::UTF8ToUTF16("Über Über Über Über"); |
| 140 } |
| 141 |
137 const std::string TestSessionStateDelegate::GetUserEmail( | 142 const std::string TestSessionStateDelegate::GetUserEmail( |
138 MultiProfileIndex index) const { | 143 MultiProfileIndex index) const { |
139 switch (index) { | 144 switch (index) { |
140 case 0: return "First@tray"; // This is intended to be capitalized. | 145 case 0: return "First@tray"; // This is intended to be capitalized. |
141 case 1: return "Second@tray"; // This is intended to be capitalized. | 146 case 1: return "Second@tray"; // This is intended to be capitalized. |
142 case 2: return "third@tray"; | 147 case 2: return "third@tray"; |
143 default: return "someone@tray"; | 148 default: return "someone@tray"; |
144 } | 149 } |
145 } | 150 } |
146 | 151 |
(...skipping 24 matching lines...) Expand all Loading... |
171 void TestSessionStateDelegate::AddSessionStateObserver( | 176 void TestSessionStateDelegate::AddSessionStateObserver( |
172 SessionStateObserver* observer) { | 177 SessionStateObserver* observer) { |
173 } | 178 } |
174 | 179 |
175 void TestSessionStateDelegate::RemoveSessionStateObserver( | 180 void TestSessionStateDelegate::RemoveSessionStateObserver( |
176 SessionStateObserver* observer) { | 181 SessionStateObserver* observer) { |
177 } | 182 } |
178 | 183 |
179 } // namespace test | 184 } // namespace test |
180 } // namespace ash | 185 } // namespace ash |
OLD | NEW |