Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 263 new ProfileManagerWithoutInit(scoped_temp_dir_.path())); | 263 new ProfileManagerWithoutInit(scoped_temp_dir_.path())); |
| 264 connector_ = browser_process_->browser_policy_connector(); | 264 connector_ = browser_process_->browser_policy_connector(); |
| 265 connector_->Init(); | 265 connector_->Init(); |
| 266 | 266 |
| 267 io_thread_state_.reset(new IOThread(local_state_.Get(), | 267 io_thread_state_.reset(new IOThread(local_state_.Get(), |
| 268 g_browser_process->policy_service(), | 268 g_browser_process->policy_service(), |
| 269 NULL, NULL)); | 269 NULL, NULL)); |
| 270 browser_process_->SetIOThread(io_thread_state_.get()); | 270 browser_process_->SetIOThread(io_thread_state_.get()); |
| 271 | 271 |
| 272 #if defined(ENABLE_RLZ) | 272 #if defined(ENABLE_RLZ) |
| 273 rlz_initialized_cb_ = base::Bind(&base::DoNothing); | |
| 273 rlz_lib::testing::SetRlzStoreDirectory(scoped_temp_dir_.path()); | 274 rlz_lib::testing::SetRlzStoreDirectory(scoped_temp_dir_.path()); |
| 274 RLZTracker::EnableZeroDelayForTesting(); | 275 RLZTracker::EnableZeroDelayForTesting(); |
|
Peter Kasting
2012/12/21 18:24:11
Is this call still needed? If not, EnableZeroDela
Ivan Korotkov
2012/12/22 12:43:04
Yes, unfortunately :( login_utils_browsertest is n
| |
| 275 #endif | 276 #endif |
| 276 | 277 |
| 277 RunUntilIdle(); | 278 RunUntilIdle(); |
| 278 } | 279 } |
| 279 | 280 |
| 280 virtual void TearDown() OVERRIDE { | 281 virtual void TearDown() OVERRIDE { |
| 281 cryptohome::AsyncMethodCaller::Shutdown(); | 282 cryptohome::AsyncMethodCaller::Shutdown(); |
| 282 mock_async_method_caller_ = NULL; | 283 mock_async_method_caller_ = NULL; |
| 283 | 284 |
| 284 UserManager::Get()->Shutdown(); | 285 UserManager::Get()->Shutdown(); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 650 } | 651 } |
| 651 | 652 |
| 652 INSTANTIATE_TEST_CASE_P( | 653 INSTANTIATE_TEST_CASE_P( |
| 653 LoginUtilsBlockingLoginTestInstance, | 654 LoginUtilsBlockingLoginTestInstance, |
| 654 LoginUtilsBlockingLoginTest, | 655 LoginUtilsBlockingLoginTest, |
| 655 testing::Values(0, 1, 2, 3, 4, 5)); | 656 testing::Values(0, 1, 2, 3, 4, 5)); |
| 656 | 657 |
| 657 } // namespace | 658 } // namespace |
| 658 | 659 |
| 659 } | 660 } |
| OLD | NEW |