OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/safe_browsing/incident_reporting/last_download_finder.h
" | 5 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h
" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/callback.h" | 13 #include "base/callback.h" |
12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
14 #include "base/location.h" | 16 #include "base/location.h" |
15 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
16 #include "base/metrics/field_trial.h" | 18 #include "base/metrics/field_trial.h" |
17 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
18 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
19 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
20 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
21 #include "base/test/mock_entropy_provider.h" | 23 #include "base/test/mock_entropy_provider.h" |
22 #include "base/thread_task_runner_handle.h" | 24 #include "base/thread_task_runner_handle.h" |
| 25 #include "build/build_config.h" |
23 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 26 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
24 #include "chrome/browser/history/chrome_history_client.h" | 27 #include "chrome/browser/history/chrome_history_client.h" |
25 #include "chrome/browser/history/history_service_factory.h" | 28 #include "chrome/browser/history/history_service_factory.h" |
26 #include "chrome/browser/history/web_history_service_factory.h" | 29 #include "chrome/browser/history/web_history_service_factory.h" |
27 #include "chrome/browser/prefs/browser_prefs.h" | 30 #include "chrome/browser/prefs/browser_prefs.h" |
28 #include "chrome/browser/profiles/profile_manager.h" | 31 #include "chrome/browser/profiles/profile_manager.h" |
29 #include "chrome/common/chrome_constants.h" | 32 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
31 #include "chrome/common/safe_browsing/csd.pb.h" | 34 #include "chrome/common/safe_browsing/csd.pb.h" |
32 #include "chrome/test/base/testing_browser_process.h" | 35 #include "chrome/test/base/testing_browser_process.h" |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 base::Bind(&LastDownloadFinderTest::OnLastDownload, | 452 base::Bind(&LastDownloadFinderTest::OnLastDownload, |
450 base::Unretained(this), &last_binary_download, | 453 base::Unretained(this), &last_binary_download, |
451 &last_non_binary_download, run_loop.QuitClosure()))); | 454 &last_non_binary_download, run_loop.QuitClosure()))); |
452 | 455 |
453 run_loop.Run(); | 456 run_loop.Run(); |
454 | 457 |
455 ASSERT_TRUE(last_binary_download); | 458 ASSERT_TRUE(last_binary_download); |
456 } | 459 } |
457 | 460 |
458 } // namespace safe_browsing | 461 } // namespace safe_browsing |
OLD | NEW |