| 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" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 Profile* profile_; | 112 Profile* profile_; |
| 113 net::NSSCertDatabase* db_; | 113 net::NSSCertDatabase* db_; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace | 116 } // namespace |
| 117 | 117 |
| 118 class NSSContextChromeOSBrowserTest : public chromeos::LoginManagerTest { | 118 class NSSContextChromeOSBrowserTest : public chromeos::LoginManagerTest { |
| 119 public: | 119 public: |
| 120 NSSContextChromeOSBrowserTest() | 120 NSSContextChromeOSBrowserTest() |
| 121 : LoginManagerTest(true /* should_launch_browser */) {} | 121 : chromeos::LoginManagerTest(true /* should_launch_browser */) {} |
| 122 virtual ~NSSContextChromeOSBrowserTest() {} | 122 virtual ~NSSContextChromeOSBrowserTest() {} |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 IN_PROC_BROWSER_TEST_F(NSSContextChromeOSBrowserTest, PRE_TwoUsers) { | 125 IN_PROC_BROWSER_TEST_F(NSSContextChromeOSBrowserTest, PRE_TwoUsers) { |
| 126 // Initialization for ChromeOS multi-profile test infrastructure. | 126 // Initialization for ChromeOS multi-profile test infrastructure. |
| 127 RegisterUser(kTestUser1); | 127 RegisterUser(kTestUser1); |
| 128 RegisterUser(kTestUser2); | 128 RegisterUser(kTestUser2); |
| 129 chromeos::StartupUtils::MarkOobeCompleted(); | 129 chromeos::StartupUtils::MarkOobeCompleted(); |
| 130 } | 130 } |
| 131 | 131 |
| (...skipping 21 matching lines...) Expand all 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 |