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_mac.h" | 5 #include "chrome/browser/password_manager/password_store_mac.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/scoped_observer.h" | 14 #include "base/scoped_observer.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
19 #include "base/test/histogram_tester.h" | 19 #include "base/test/histogram_tester.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "chrome/browser/password_manager/password_store_mac_internal.h" | 21 #include "chrome/browser/password_manager/password_store_mac_internal.h" |
22 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
23 #include "components/os_crypt/os_crypt.h" | 23 #include "components/os_crypt/os_crypt.h" |
24 #include "components/password_manager/core/browser/login_database.h" | 24 #include "components/password_manager/core/browser/login_database.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/password_store_origin_unittes
t.h" | 27 #include "components/password_manager/core/browser/password_store_origin_unittes
t.h" |
28 #include "content/public/test/test_browser_thread.h" | 28 #include "content/public/test/test_browser_thread.h" |
29 #include "content/public/test/test_utils.h" | 29 #include "content/public/test/test_utils.h" |
30 #include "crypto/mock_apple_keychain.h" | 30 #include "crypto/mock_apple_keychain.h" |
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1964 histogram_tester_->ExpectUniqueSample( | 1964 histogram_tester_->ExpectUniqueSample( |
1965 "PasswordManager.KeychainMigration.NumPasswordsOnFailure", 1, 1); | 1965 "PasswordManager.KeychainMigration.NumPasswordsOnFailure", 1, 1); |
1966 histogram_tester_->ExpectUniqueSample( | 1966 histogram_tester_->ExpectUniqueSample( |
1967 "PasswordManager.KeychainMigration.NumFailedPasswords", 1, 1); | 1967 "PasswordManager.KeychainMigration.NumFailedPasswords", 1, 1); |
1968 histogram_tester_->ExpectUniqueSample( | 1968 histogram_tester_->ExpectUniqueSample( |
1969 "PasswordManager.KeychainMigration.NumChromeOwnedInaccessiblePasswords", | 1969 "PasswordManager.KeychainMigration.NumChromeOwnedInaccessiblePasswords", |
1970 2, 1); | 1970 2, 1); |
1971 // Don't test the encryption key access. | 1971 // Don't test the encryption key access. |
1972 histogram_tester_.reset(); | 1972 histogram_tester_.reset(); |
1973 } | 1973 } |
OLD | NEW |