OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/downloads_counter.h" | 5 #include "chrome/browser/browsing_data/downloads_counter.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/guid.h" | 10 #include "base/guid.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "chrome/browser/download/download_history.h" | 13 #include "chrome/browser/download/download_history.h" |
14 #include "chrome/browser/download/download_service.h" | 14 #include "chrome/browser/download/download_service.h" |
15 #include "chrome/browser/download/download_service_factory.h" | 15 #include "chrome/browser/download/download_service_factory.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
19 #include "components/browsing_data/browsing_data_utils.h" | 19 #include "components/browsing_data/core/browsing_data_utils.h" |
20 #include "components/browsing_data/pref_names.h" | 20 #include "components/browsing_data/core/pref_names.h" |
21 #include "components/history/core/browser/download_row.h" | 21 #include "components/history/core/browser/download_row.h" |
22 #include "components/prefs/pref_service.h" | 22 #include "components/prefs/pref_service.h" |
23 #include "content/public/browser/download_manager.h" | 23 #include "content/public/browser/download_manager.h" |
24 | 24 |
25 #if defined(ENABLE_EXTENSIONS) | 25 #if defined(ENABLE_EXTENSIONS) |
26 #include "extensions/common/extension.h" | 26 #include "extensions/common/extension.h" |
27 #endif | 27 #endif |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 EXPECT_EQ(7u, GetResult()); | 388 EXPECT_EQ(7u, GetResult()); |
389 | 389 |
390 SetDeletionPeriodPref(browsing_data::FOUR_WEEKS); | 390 SetDeletionPeriodPref(browsing_data::FOUR_WEEKS); |
391 EXPECT_EQ(8u, GetResult()); | 391 EXPECT_EQ(8u, GetResult()); |
392 | 392 |
393 SetDeletionPeriodPref(browsing_data::EVERYTHING); | 393 SetDeletionPeriodPref(browsing_data::EVERYTHING); |
394 EXPECT_EQ(11u, GetResult()); | 394 EXPECT_EQ(11u, GetResult()); |
395 } | 395 } |
396 | 396 |
397 } // namespace | 397 } // namespace |
OLD | NEW |