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 <stddef.h> | 10 #include <stddef.h> |
11 | 11 |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.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/stl_util.h" | 18 #include "base/stl_util.h" |
19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
22 #include "base/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "components/password_manager/core/browser/affiliated_match_helper.h" | 25 #include "components/password_manager/core/browser/affiliated_match_helper.h" |
26 #include "components/password_manager/core/browser/affiliation_service.h" | 26 #include "components/password_manager/core/browser/affiliation_service.h" |
27 #include "components/password_manager/core/browser/mock_affiliated_match_helper.
h" | 27 #include "components/password_manager/core/browser/mock_affiliated_match_helper.
h" |
28 #include "components/password_manager/core/browser/password_manager_test_utils.h
" | 28 #include "components/password_manager/core/browser/password_manager_test_utils.h
" |
29 #include "components/password_manager/core/browser/password_store_consumer.h" | 29 #include "components/password_manager/core/browser/password_store_consumer.h" |
30 #include "components/password_manager/core/browser/password_store_default.h" | 30 #include "components/password_manager/core/browser/password_store_default.h" |
31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 // Since GetAutofillableLoginsWithAffiliatedRealms schedules a request for | 874 // Since GetAutofillableLoginsWithAffiliatedRealms schedules a request for |
875 // affiliated realms to UI thread, don't shutdown UI thread until there are | 875 // affiliated realms to UI thread, don't shutdown UI thread until there are |
876 // no tasks in the UI queue. | 876 // no tasks in the UI queue. |
877 base::MessageLoop::current()->RunUntilIdle(); | 877 base::MessageLoop::current()->RunUntilIdle(); |
878 store->ShutdownOnUIThread(); | 878 store->ShutdownOnUIThread(); |
879 base::MessageLoop::current()->RunUntilIdle(); | 879 base::MessageLoop::current()->RunUntilIdle(); |
880 } | 880 } |
881 } | 881 } |
882 | 882 |
883 } // namespace password_manager | 883 } // namespace password_manager |
OLD | NEW |