OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/bind_helpers.h" | 16 #include "base/bind_helpers.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
19 #include "base/location.h" | 19 #include "base/location.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/macros.h" | 21 #include "base/macros.h" |
22 #include "base/memory/ptr_util.h" | 22 #include "base/memory/ptr_util.h" |
23 #include "base/message_loop/message_loop.h" | 23 #include "base/message_loop/message_loop.h" |
24 #include "base/run_loop.h" | 24 #include "base/run_loop.h" |
25 #include "base/single_thread_task_runner.h" | 25 #include "base/single_thread_task_runner.h" |
26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
27 #include "base/task/cancelable_task_tracker.h" | 27 #include "base/task/cancelable_task_tracker.h" |
28 #include "base/threading/thread_task_runner_handle.h" | 28 #include "base/threading/thread_task_runner_handle.h" |
| 29 #include "base/time/time.h" |
29 #include "build/build_config.h" | 30 #include "build/build_config.h" |
30 #include "chrome/browser/browsing_data/browsing_data_filter_builder.h" | 31 #include "chrome/browser/browsing_data/browsing_data_filter_builder.h" |
31 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 32 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
32 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 33 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
33 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" | 34 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" |
34 #include "chrome/browser/browsing_data/browsing_data_remover_impl.h" | 35 #include "chrome/browser/browsing_data/browsing_data_remover_impl.h" |
35 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h" | 36 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h" |
36 #include "chrome/test/base/testing_profile.h" | 37 #include "chrome/test/base/testing_profile.h" |
37 #include "content/public/browser/browser_context.h" | 38 #include "content/public/browser/browser_context.h" |
38 #include "content/public/browser/cookie_store_factory.h" | 39 #include "content/public/browser/cookie_store_factory.h" |
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 EXPECT_TRUE(remover->is_removing()); | 1711 EXPECT_TRUE(remover->is_removing()); |
1711 | 1712 |
1712 // Add one more deletion and wait for it. | 1713 // Add one more deletion and wait for it. |
1713 BlockUntilBrowsingDataRemoved( | 1714 BlockUntilBrowsingDataRemoved( |
1714 base::Time(), base::Time::Max(), | 1715 base::Time(), base::Time::Max(), |
1715 BrowsingDataRemover::REMOVE_COOKIES, | 1716 BrowsingDataRemover::REMOVE_COOKIES, |
1716 BrowsingDataHelper::UNPROTECTED_WEB); | 1717 BrowsingDataHelper::UNPROTECTED_WEB); |
1717 | 1718 |
1718 EXPECT_FALSE(remover->is_removing()); | 1719 EXPECT_FALSE(remover->is_removing()); |
1719 } | 1720 } |
OLD | NEW |