| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 10 #include "base/scoped_temp_dir.h" | |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
| 14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 17 #include "chrome/browser/password_manager/password_form_data.h" | 17 #include "chrome/browser/password_manager/password_form_data.h" |
| 18 #include "chrome/browser/password_manager/password_store_change.h" | 18 #include "chrome/browser/password_manager/password_store_change.h" |
| 19 #include "chrome/browser/password_manager/password_store_consumer.h" | 19 #include "chrome/browser/password_manager/password_store_consumer.h" |
| 20 #include "chrome/browser/password_manager/password_store_x.h" | 20 #include "chrome/browser/password_manager/password_store_x.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 | 293 |
| 294 MessageLoopForUI message_loop_; | 294 MessageLoopForUI message_loop_; |
| 295 content::TestBrowserThread ui_thread_; | 295 content::TestBrowserThread ui_thread_; |
| 296 // PasswordStore, WDS schedule work on this thread. | 296 // PasswordStore, WDS schedule work on this thread. |
| 297 content::TestBrowserThread db_thread_; | 297 content::TestBrowserThread db_thread_; |
| 298 | 298 |
| 299 scoped_ptr<LoginDatabase> login_db_; | 299 scoped_ptr<LoginDatabase> login_db_; |
| 300 scoped_ptr<TestingProfile> profile_; | 300 scoped_ptr<TestingProfile> profile_; |
| 301 ScopedTempDir temp_dir_; | 301 base::ScopedTempDir temp_dir_; |
| 302 }; | 302 }; |
| 303 | 303 |
| 304 ACTION(STLDeleteElements0) { | 304 ACTION(STLDeleteElements0) { |
| 305 STLDeleteContainerPointers(arg0.begin(), arg0.end()); | 305 STLDeleteContainerPointers(arg0.begin(), arg0.end()); |
| 306 } | 306 } |
| 307 | 307 |
| 308 ACTION(QuitUIMessageLoop) { | 308 ACTION(QuitUIMessageLoop) { |
| 309 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 309 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 310 MessageLoop::current()->Quit(); | 310 MessageLoop::current()->Quit(); |
| 311 } | 311 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 | 538 |
| 539 INSTANTIATE_TEST_CASE_P(NoBackend, | 539 INSTANTIATE_TEST_CASE_P(NoBackend, |
| 540 PasswordStoreXTest, | 540 PasswordStoreXTest, |
| 541 testing::Values(NO_BACKEND)); | 541 testing::Values(NO_BACKEND)); |
| 542 INSTANTIATE_TEST_CASE_P(FailingBackend, | 542 INSTANTIATE_TEST_CASE_P(FailingBackend, |
| 543 PasswordStoreXTest, | 543 PasswordStoreXTest, |
| 544 testing::Values(FAILING_BACKEND)); | 544 testing::Values(FAILING_BACKEND)); |
| 545 INSTANTIATE_TEST_CASE_P(WorkingBackend, | 545 INSTANTIATE_TEST_CASE_P(WorkingBackend, |
| 546 PasswordStoreXTest, | 546 PasswordStoreXTest, |
| 547 testing::Values(WORKING_BACKEND)); | 547 testing::Values(WORKING_BACKEND)); |
| OLD | NEW |