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/affiliation_backend.h" | 5 #include "components/password_manager/core/browser/affiliation_backend.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/test/test_mock_time_task_runner.h" | 14 #include "base/test/test_mock_time_task_runner.h" |
13 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
14 #include "base/time/clock.h" | 16 #include "base/time/clock.h" |
15 #include "base/time/tick_clock.h" | 17 #include "base/time/tick_clock.h" |
16 #include "components/password_manager/core/browser/affiliation_database.h" | 18 #include "components/password_manager/core/browser/affiliation_database.h" |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 } | 914 } |
913 | 915 |
914 TEST_F(AffiliationBackendTest, DeleteCache) { | 916 TEST_F(AffiliationBackendTest, DeleteCache) { |
915 DestroyBackend(); | 917 DestroyBackend(); |
916 ASSERT_TRUE(base::PathExists(db_path())); | 918 ASSERT_TRUE(base::PathExists(db_path())); |
917 AffiliationBackend::DeleteCache(db_path()); | 919 AffiliationBackend::DeleteCache(db_path()); |
918 ASSERT_FALSE(base::PathExists(db_path())); | 920 ASSERT_FALSE(base::PathExists(db_path())); |
919 } | 921 } |
920 | 922 |
921 } // namespace password_manager | 923 } // namespace password_manager |
OLD | NEW |