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

Side by Side Diff: ash/test/test_session_state_delegate.cc

Issue 2237433002: ash: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/utility/screenshot_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/login_status.h" 10 #include "ash/common/login_status.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 session_state_(SESSION_STATE_LOGIN_PRIMARY) { 96 session_state_(SESSION_STATE_LOGIN_PRIMARY) {
97 user_list_.push_back( 97 user_list_.push_back(
98 new MockUserInfo("First@tray")); // This is intended to be capitalized. 98 new MockUserInfo("First@tray")); // This is intended to be capitalized.
99 user_list_.push_back( 99 user_list_.push_back(
100 new MockUserInfo("Second@tray")); // This is intended to be capitalized. 100 new MockUserInfo("Second@tray")); // This is intended to be capitalized.
101 user_list_.push_back(new MockUserInfo("third@tray")); 101 user_list_.push_back(new MockUserInfo("third@tray"));
102 user_list_.push_back(new MockUserInfo("someone@tray")); 102 user_list_.push_back(new MockUserInfo("someone@tray"));
103 } 103 }
104 104
105 TestSessionStateDelegate::~TestSessionStateDelegate() { 105 TestSessionStateDelegate::~TestSessionStateDelegate() {
106 STLDeleteElements(&user_list_); 106 base::STLDeleteElements(&user_list_);
107 } 107 }
108 108
109 void TestSessionStateDelegate::AddUser(const AccountId& account_id) { 109 void TestSessionStateDelegate::AddUser(const AccountId& account_id) {
110 user_list_.push_back(new MockUserInfo(account_id.GetUserEmail())); 110 user_list_.push_back(new MockUserInfo(account_id.GetUserEmail()));
111 } 111 }
112 112
113 const user_manager::UserInfo* TestSessionStateDelegate::GetActiveUserInfo() 113 const user_manager::UserInfo* TestSessionStateDelegate::GetActiveUserInfo()
114 const { 114 const {
115 return user_list_[active_user_index_]; 115 return user_list_[active_user_index_];
116 } 116 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } 244 }
245 245
246 void TestSessionStateDelegate::AddSessionStateObserver( 246 void TestSessionStateDelegate::AddSessionStateObserver(
247 SessionStateObserver* observer) {} 247 SessionStateObserver* observer) {}
248 248
249 void TestSessionStateDelegate::RemoveSessionStateObserver( 249 void TestSessionStateDelegate::RemoveSessionStateObserver(
250 SessionStateObserver* observer) {} 250 SessionStateObserver* observer) {}
251 251
252 } // namespace test 252 } // namespace test
253 } // namespace ash 253 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/utility/screenshot_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698