| OLD | NEW | 
|---|
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 <stdarg.h> | 5 #include <stdarg.h> | 
| 6 #include <stddef.h> | 6 #include <stddef.h> | 
| 7 #include <stdint.h> | 7 #include <stdint.h> | 
| 8 | 8 | 
| 9 #include "base/location.h" | 9 #include "base/location.h" | 
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" | 
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" | 
| 12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" | 
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" | 
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" | 
| 15 #include "base/strings/stringprintf.h" |  | 
| 16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" | 
| 17 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" | 
| 18 #include "base/time/time.h" | 17 #include "base/time/time.h" | 
| 19 #include "chrome/browser/password_manager/native_backend_libsecret.h" | 18 #include "chrome/browser/password_manager/native_backend_libsecret.h" | 
| 20 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" | 
| 21 #include "components/autofill/core/common/password_form.h" | 20 #include "components/autofill/core/common/password_form.h" | 
| 22 #include "components/password_manager/core/browser/psl_matching_helper.h" | 21 #include "components/password_manager/core/browser/psl_matching_helper.h" | 
| 23 #include "components/password_manager/core/common/password_manager_pref_names.h" | 22 #include "components/password_manager/core/common/password_manager_pref_names.h" | 
| 24 #include "components/prefs/pref_service.h" | 23 #include "components/prefs/pref_service.h" | 
| 25 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" | 
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 978   EXPECT_EQ(form_google_, *form_list[0]); | 977   EXPECT_EQ(form_google_, *form_list[0]); | 
| 979 | 978 | 
| 980   EXPECT_EQ(1u, global_mock_libsecret_items->size()); | 979   EXPECT_EQ(1u, global_mock_libsecret_items->size()); | 
| 981   if (!global_mock_libsecret_items->empty()) { | 980   if (!global_mock_libsecret_items->empty()) { | 
| 982     CheckMockSecretItem((*global_mock_libsecret_items)[0], form_google_, | 981     CheckMockSecretItem((*global_mock_libsecret_items)[0], form_google_, | 
| 983                         "chrome-42"); | 982                         "chrome-42"); | 
| 984   } | 983   } | 
| 985 } | 984 } | 
| 986 | 985 | 
| 987 // TODO(mdm): add more basic tests here at some point. | 986 // TODO(mdm): add more basic tests here at some point. | 
| OLD | NEW | 
|---|