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/password_manager/password_store_win.h" | 5 #include "chrome/browser/password_manager/password_store_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/files/scoped_temp_dir.h" | 15 #include "base/files/scoped_temp_dir.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
20 #include "base/synchronization/waitable_event.h" | 20 #include "base/synchronization/waitable_event.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
24 #include "components/os_crypt/ie7_password_win.h" | 24 #include "components/os_crypt/ie7_password_win.h" |
25 #include "components/password_manager/core/browser/password_manager_test_utils.h
" | 25 #include "components/password_manager/core/browser/password_manager_test_utils.h
" |
26 #include "components/password_manager/core/browser/password_store_consumer.h" | 26 #include "components/password_manager/core/browser/password_store_consumer.h" |
27 #include "components/password_manager/core/browser/webdata/logins_table.h" | 27 #include "components/password_manager/core/browser/webdata/logins_table.h" |
28 #include "components/password_manager/core/browser/webdata/password_web_data_ser
vice_win.h" | 28 #include "components/password_manager/core/browser/webdata/password_web_data_ser
vice_win.h" |
29 #include "components/password_manager/core/common/password_manager_pref_names.h" | 29 #include "components/password_manager/core/common/password_manager_pref_names.h" |
30 #include "components/prefs/pref_service.h" | 30 #include "components/prefs/pref_service.h" |
31 #include "components/webdata/common/web_database_service.h" | 31 #include "components/webdata/common/web_database_service.h" |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 // Make sure we quit the MessageLoop even if the test fails. | 426 // Make sure we quit the MessageLoop even if the test fails. |
427 ON_CALL(consumer, OnGetPasswordStoreResultsConstRef(_)) | 427 ON_CALL(consumer, OnGetPasswordStoreResultsConstRef(_)) |
428 .WillByDefault(QuitUIMessageLoop()); | 428 .WillByDefault(QuitUIMessageLoop()); |
429 | 429 |
430 EXPECT_CALL(consumer, OnGetPasswordStoreResultsConstRef(IsEmpty())); | 430 EXPECT_CALL(consumer, OnGetPasswordStoreResultsConstRef(IsEmpty())); |
431 | 431 |
432 store_->GetAutofillableLogins(&consumer); | 432 store_->GetAutofillableLogins(&consumer); |
433 base::MessageLoop::current()->Run(); | 433 base::MessageLoop::current()->Run(); |
434 } | 434 } |
OLD | NEW |