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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_userlist_unittest.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" 6 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h"
7 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" 7 #include "chrome/browser/chromeos/login/users/fake_user_manager.h"
8 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h" 8 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h"
9 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele gate.h" 9 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele gate.h"
10 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
10 #include "chrome/browser/signin/screenlock_bridge.h" 11 #include "chrome/browser/signin/screenlock_bridge.h"
11 #include "chrome/test/base/testing_browser_process.h" 12 #include "chrome/test/base/testing_browser_process.h"
12 #include "chrome/test/base/testing_profile_manager.h" 13 #include "chrome/test/base/testing_profile_manager.h"
13 #include "components/user_manager/user.h" 14 #include "components/user_manager/user.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 namespace { 17 namespace {
17 18
18 const size_t kMaxUsers = 18; // same as in user_selection_screen.cc 19 const size_t kMaxUsers = 18; // same as in user_selection_screen.cc
19 const char* kOwner = "owner@gmail.com"; 20 const char* kOwner = "owner@gmail.com";
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 users_to_send = UserSelectionScreen::PrepareUserListForSending( 110 users_to_send = UserSelectionScreen::PrepareUserListForSending(
110 fake_user_manager_->GetUsers(), 111 fake_user_manager_->GetUsers(),
111 kOwner, 112 kOwner,
112 false /* is signin to add */); 113 false /* is signin to add */);
113 114
114 EXPECT_EQ(kMaxUsers, users_to_send.size()); 115 EXPECT_EQ(kMaxUsers, users_to_send.size());
115 EXPECT_EQ("public0@gmail.com", users_to_send.front()->email()); 116 EXPECT_EQ("public0@gmail.com", users_to_send.front()->email());
116 } 117 }
117 118
118 } // namespace chromeos 119 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698