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 "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" | 5 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
6 | 6 |
7 #include "base/guid.h" | 7 #include "base/guid.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
12 #include "base/test/scoped_feature_list.h" | 13 #include "base/test/scoped_feature_list.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 15 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
15 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
16 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 17 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
17 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_fac
tory.h" | 18 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_fac
tory.h" |
18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 19 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2333 base::Callback<bool(const GURL&)> origin_filter; | 2334 base::Callback<bool(const GURL&)> origin_filter; |
2334 tester.GetMockInfo(&remove_count, &data_type_mask, &origin_filter); | 2335 tester.GetMockInfo(&remove_count, &data_type_mask, &origin_filter); |
2335 | 2336 |
2336 EXPECT_EQ(1, remove_count); | 2337 EXPECT_EQ(1, remove_count); |
2337 EXPECT_EQ(net::ReportingBrowsingDataRemover::DATA_TYPE_REPORTS | | 2338 EXPECT_EQ(net::ReportingBrowsingDataRemover::DATA_TYPE_REPORTS | |
2338 net::ReportingBrowsingDataRemover::DATA_TYPE_CLIENTS, | 2339 net::ReportingBrowsingDataRemover::DATA_TYPE_CLIENTS, |
2339 data_type_mask); | 2340 data_type_mask); |
2340 EXPECT_TRUE( | 2341 EXPECT_TRUE( |
2341 ProbablySameFilters(builder->BuildGeneralFilter(), origin_filter)); | 2342 ProbablySameFilters(builder->BuildGeneralFilter(), origin_filter)); |
2342 } | 2343 } |
OLD | NEW |