| 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> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 | 10 |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/macros.h" |
| 11 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
| 12 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 13 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
| 16 #include "base/test/histogram_tester.h" | 18 #include "base/test/histogram_tester.h" |
| 17 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
| 18 #include "chrome/browser/password_manager/password_store_mac_internal.h" | 20 #include "chrome/browser/password_manager/password_store_mac_internal.h" |
| 19 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
| 20 #include "components/os_crypt/os_crypt.h" | 22 #include "components/os_crypt/os_crypt.h" |
| (...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1921 histogram_tester_->ExpectUniqueSample( | 1923 histogram_tester_->ExpectUniqueSample( |
| 1922 "PasswordManager.KeychainMigration.NumPasswordsOnFailure", 1, 1); | 1924 "PasswordManager.KeychainMigration.NumPasswordsOnFailure", 1, 1); |
| 1923 histogram_tester_->ExpectUniqueSample( | 1925 histogram_tester_->ExpectUniqueSample( |
| 1924 "PasswordManager.KeychainMigration.NumFailedPasswords", 1, 1); | 1926 "PasswordManager.KeychainMigration.NumFailedPasswords", 1, 1); |
| 1925 histogram_tester_->ExpectUniqueSample( | 1927 histogram_tester_->ExpectUniqueSample( |
| 1926 "PasswordManager.KeychainMigration.NumChromeOwnedInaccessiblePasswords", | 1928 "PasswordManager.KeychainMigration.NumChromeOwnedInaccessiblePasswords", |
| 1927 2, 1); | 1929 2, 1); |
| 1928 // Don't test the encryption key access. | 1930 // Don't test the encryption key access. |
| 1929 histogram_tester_.reset(); | 1931 histogram_tester_.reset(); |
| 1930 } | 1932 } |
| OLD | NEW |