OLD | NEW |
---|---|
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 "chrome/browser/chromeos/login/managed/managed_user_test_base.h" | 5 #include "chrome/browser/chromeos/login/managed/managed_user_test_base.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 NetworkPortalDetector::CaptivePortalState online_state; | 195 NetworkPortalDetector::CaptivePortalState online_state; |
196 online_state.status = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_ONLINE; | 196 online_state.status = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_ONLINE; |
197 online_state.response_code = 204; | 197 online_state.response_code = 204; |
198 network_portal_detector_->SetDefaultNetworkPathForTesting( | 198 network_portal_detector_->SetDefaultNetworkPathForTesting( |
199 kStubEthernetServicePath, | 199 kStubEthernetServicePath, |
200 kStubEthernetServicePath /* guid */); | 200 kStubEthernetServicePath /* guid */); |
201 network_portal_detector_->SetDetectionResultsForTesting( | 201 network_portal_detector_->SetDetectionResultsForTesting( |
202 kStubEthernetServicePath, online_state); | 202 kStubEthernetServicePath, online_state); |
203 } | 203 } |
204 | 204 |
205 void ManagedUserTestBase::CleanUpOnMainThread() { | 205 void ManagedUserTestBase::TearDownOnMainThread() { |
jam
2014/07/14 17:10:05
nit: seems that this overriding can be removed sin
Andrew T Wilson (Slow)
2014/07/23 12:48:41
This whole file is gone now.
| |
206 LoginManagerTest::CleanUpOnMainThread(); | 206 LoginManagerTest::TearDownOnMainThread(); |
207 } | 207 } |
208 | 208 |
209 void ManagedUserTestBase::TearDown() { | 209 void ManagedUserTestBase::TearDown() { |
210 cryptohome::AsyncMethodCaller::Shutdown(); | 210 cryptohome::AsyncMethodCaller::Shutdown(); |
211 cryptohome::HomedirMethods::Shutdown(); | 211 cryptohome::HomedirMethods::Shutdown(); |
212 mock_homedir_methods_ = NULL; | 212 mock_homedir_methods_ = NULL; |
213 mock_async_method_caller_ = NULL; | 213 mock_async_method_caller_ = NULL; |
214 LoginManagerTest::TearDown(); | 214 LoginManagerTest::TearDown(); |
215 } | 215 } |
216 | 216 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
426 // Confirm deletion. | 426 // Confirm deletion. |
427 JSEval(StringPrintf( | 427 JSEval(StringPrintf( |
428 "$('pod-row').pods[%d].querySelector('.remove-warning-button').click()", | 428 "$('pod-row').pods[%d].querySelector('.remove-warning-button').click()", |
429 user_index)); | 429 user_index)); |
430 | 430 |
431 // Make sure there is no supervised user in list. | 431 // Make sure there is no supervised user in list. |
432 ASSERT_EQ(original_user_count - 1, UserManager::Get()->GetUsers().size()); | 432 ASSERT_EQ(original_user_count - 1, UserManager::Get()->GetUsers().size()); |
433 } | 433 } |
434 | 434 |
435 } // namespace chromeos | 435 } // namespace chromeos |
OLD | NEW |