| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/password_manager/core/browser/affiliated_match_helper.h" | 5 #include "components/password_manager/core/browser/affiliated_match_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/test/test_simple_task_runner.h" | 17 #include "base/test/test_simple_task_runner.h" |
| 18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 19 #include "components/password_manager/core/browser/affiliation_service.h" | 19 #include "components/password_manager/core/browser/affiliation_service.h" |
| 20 #include "components/password_manager/core/browser/affiliation_utils.h" | 20 #include "components/password_manager/core/browser/affiliation_utils.h" |
| 21 #include "components/password_manager/core/browser/test_password_store.h" | 21 #include "components/password_manager/core/browser/test_password_store.h" |
| 22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 namespace password_manager { | 25 namespace password_manager { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 } | 633 } |
| 634 | 634 |
| 635 TEST_F(AffiliatedMatchHelperTest, DestroyBeforeDeferredInitialization) { | 635 TEST_F(AffiliatedMatchHelperTest, DestroyBeforeDeferredInitialization) { |
| 636 match_helper()->Initialize(); | 636 match_helper()->Initialize(); |
| 637 base::RunLoop().RunUntilIdle(); | 637 base::RunLoop().RunUntilIdle(); |
| 638 DestroyMatchHelper(); | 638 DestroyMatchHelper(); |
| 639 ASSERT_NO_FATAL_FAILURE(RunDeferredInitialization()); | 639 ASSERT_NO_FATAL_FAILURE(RunDeferredInitialization()); |
| 640 } | 640 } |
| 641 | 641 |
| 642 } // namespace password_manager | 642 } // namespace password_manager |
| OLD | NEW |