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

Side by Side Diff: chrome/browser/net/nss_context_chromeos_browsertest.cc

Issue 398753004: [cros] Move User class to user_manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/net/nss_context.h" 5 #include "chrome/browser/net/nss_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "chrome/browser/chromeos/login/login_manager_test.h" 9 #include "chrome/browser/chromeos/login/login_manager_test.h"
10 #include "chrome/browser/chromeos/login/startup_utils.h" 10 #include "chrome/browser/chromeos/login/startup_utils.h"
11 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" 11 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h"
12 #include "chrome/browser/chromeos/login/users/user.h"
13 #include "chrome/browser/chromeos/login/users/user_manager.h" 12 #include "chrome/browser/chromeos/login/users/user_manager.h"
14 #include "chrome/browser/chromeos/profiles/profile_helper.h" 13 #include "chrome/browser/chromeos/profiles/profile_helper.h"
14 #include "components/user_manager/user.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "net/cert/nss_cert_database.h" 16 #include "net/cert/nss_cert_database.h"
17 17
18 namespace { 18 namespace {
19 19
20 const char kTestUser1[] = "test-user1@gmail.com"; 20 const char kTestUser1[] = "test-user1@gmail.com";
21 const char kTestUser2[] = "test-user2@gmail.com"; 21 const char kTestUser2[] = "test-user2@gmail.com";
22 22
23 void NotCalledDbCallback(net::NSSCertDatabase* db) { ASSERT_TRUE(false); } 23 void NotCalledDbCallback(net::NSSCertDatabase* db) { ASSERT_TRUE(false); }
24 24
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 DBTester tester2(profile2); 154 DBTester tester2(profile2);
155 ASSERT_TRUE(tester2.DoGetDBTests()); 155 ASSERT_TRUE(tester2.DoGetDBTests());
156 156
157 // Get both DBs again to check that the same object is returned. 157 // Get both DBs again to check that the same object is returned.
158 tester1.DoGetDBAgainTests(); 158 tester1.DoGetDBAgainTests();
159 tester2.DoGetDBAgainTests(); 159 tester2.DoGetDBAgainTests();
160 160
161 // Check that each user has a separate DB and NSS slots. 161 // Check that each user has a separate DB and NSS slots.
162 tester1.DoNotEqualsTests(&tester2); 162 tester1.DoNotEqualsTests(&tester2);
163 } 163 }
OLDNEW
« no previous file with comments | « chrome/browser/net/DEPS ('k') | chrome/browser/notifications/message_center_settings_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698