OLD | NEW |
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/user.h" | 11 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" |
12 #include "chrome/browser/chromeos/login/user_adding_screen.h" | 12 #include "chrome/browser/chromeos/login/users/user.h" |
13 #include "chrome/browser/chromeos/login/user_manager.h" | 13 #include "chrome/browser/chromeos/login/users/user_manager.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "net/cert/nss_cert_database.h" | 15 #include "net/cert/nss_cert_database.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 const char kTestUser1[] = "test-user1@gmail.com"; | 19 const char kTestUser1[] = "test-user1@gmail.com"; |
20 const char kTestUser2[] = "test-user2@gmail.com"; | 20 const char kTestUser2[] = "test-user2@gmail.com"; |
21 | 21 |
22 void NotCalledDbCallback(net::NSSCertDatabase* db) { ASSERT_TRUE(false); } | 22 void NotCalledDbCallback(net::NSSCertDatabase* db) { ASSERT_TRUE(false); } |
23 | 23 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 DBTester tester2(profile2); | 153 DBTester tester2(profile2); |
154 ASSERT_TRUE(tester2.DoGetDBTests()); | 154 ASSERT_TRUE(tester2.DoGetDBTests()); |
155 | 155 |
156 // Get both DBs again to check that the same object is returned. | 156 // Get both DBs again to check that the same object is returned. |
157 tester1.DoGetDBAgainTests(); | 157 tester1.DoGetDBAgainTests(); |
158 tester2.DoGetDBAgainTests(); | 158 tester2.DoGetDBAgainTests(); |
159 | 159 |
160 // Check that each user has a separate DB and NSS slots. | 160 // Check that each user has a separate DB and NSS slots. |
161 tester1.DoNotEqualsTests(&tester2); | 161 tester1.DoNotEqualsTests(&tester2); |
162 } | 162 } |
OLD | NEW |