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 // The passwords in the tests below are all empty because PasswordStoreDefault | 5 // The passwords in the tests below are all empty because PasswordStoreDefault |
6 // does not store the actual passwords on OS X (they are stored in the Keychain | 6 // does not store the actual passwords on OS X (they are stored in the Keychain |
7 // instead). We could special-case it, but it is easier to just have empty | 7 // instead). We could special-case it, but it is easier to just have empty |
8 // passwords. This will not be needed anymore if crbug.com/466638 is fixed. | 8 // passwords. This will not be needed anymore if crbug.com/466638 is fixed. |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include <stddef.h> |
| 11 |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/macros.h" |
13 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
16 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
17 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
18 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 #include "build/build_config.h" |
19 #include "components/password_manager/core/browser/affiliated_match_helper.h" | 22 #include "components/password_manager/core/browser/affiliated_match_helper.h" |
20 #include "components/password_manager/core/browser/affiliation_service.h" | 23 #include "components/password_manager/core/browser/affiliation_service.h" |
21 #include "components/password_manager/core/browser/mock_affiliated_match_helper.
h" | 24 #include "components/password_manager/core/browser/mock_affiliated_match_helper.
h" |
22 #include "components/password_manager/core/browser/password_manager_test_utils.h
" | 25 #include "components/password_manager/core/browser/password_manager_test_utils.h
" |
23 #include "components/password_manager/core/browser/password_store_consumer.h" | 26 #include "components/password_manager/core/browser/password_store_consumer.h" |
24 #include "components/password_manager/core/browser/password_store_default.h" | 27 #include "components/password_manager/core/browser/password_store_default.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
27 | 30 |
28 using autofill::PasswordForm; | 31 using autofill::PasswordForm; |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 OnGetPasswordStoreResultsConstRef(UnorderedPasswordFormElementsAre( | 793 OnGetPasswordStoreResultsConstRef(UnorderedPasswordFormElementsAre( |
791 expected_credentials_after_update.get()))); | 794 expected_credentials_after_update.get()))); |
792 store->GetAutofillableLogins(&mock_consumer); | 795 store->GetAutofillableLogins(&mock_consumer); |
793 store->ShutdownOnUIThread(); | 796 store->ShutdownOnUIThread(); |
794 base::MessageLoop::current()->RunUntilIdle(); | 797 base::MessageLoop::current()->RunUntilIdle(); |
795 } | 798 } |
796 } | 799 } |
797 } | 800 } |
798 | 801 |
799 } // namespace password_manager | 802 } // namespace password_manager |
OLD | NEW |