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> |
| 8 |
7 #include "base/macros.h" | 9 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
12 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
13 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
15 #include "components/password_manager/core/browser/affiliation_service.h" | 17 #include "components/password_manager/core/browser/affiliation_service.h" |
16 #include "components/password_manager/core/browser/affiliation_utils.h" | 18 #include "components/password_manager/core/browser/affiliation_utils.h" |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 } | 559 } |
558 | 560 |
559 TEST_F(AffiliatedMatchHelperTest, DestroyBeforeDeferredInitialization) { | 561 TEST_F(AffiliatedMatchHelperTest, DestroyBeforeDeferredInitialization) { |
560 match_helper()->Initialize(); | 562 match_helper()->Initialize(); |
561 base::RunLoop().RunUntilIdle(); | 563 base::RunLoop().RunUntilIdle(); |
562 DestroyMatchHelper(); | 564 DestroyMatchHelper(); |
563 ASSERT_NO_FATAL_FAILURE(RunDeferredInitialization()); | 565 ASSERT_NO_FATAL_FAILURE(RunDeferredInitialization()); |
564 } | 566 } |
565 | 567 |
566 } // namespace password_manager | 568 } // namespace password_manager |
OLD | NEW |