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/incident_reporting_ser
vice.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser
vice.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <string> | 10 #include <string> |
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/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/macros.h" |
13 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
14 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
16 #include "base/test/mock_entropy_provider.h" | 19 #include "base/test/mock_entropy_provider.h" |
17 #include "base/test/test_simple_task_runner.h" | 20 #include "base/test/test_simple_task_runner.h" |
18 #include "base/thread_task_runner_handle.h" | 21 #include "base/thread_task_runner_handle.h" |
19 #include "base/threading/thread_local.h" | 22 #include "base/threading/thread_local.h" |
| 23 #include "build/build_config.h" |
20 #include "chrome/browser/prefs/browser_prefs.h" | 24 #include "chrome/browser/prefs/browser_prefs.h" |
21 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" | 25 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
22 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 26 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
23 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er.h" | 27 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er.h" |
24 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h
" | 28 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h
" |
25 #include "chrome/browser/safe_browsing/incident_reporting/tracked_preference_inc
ident.h" | 29 #include "chrome/browser/safe_browsing/incident_reporting/tracked_preference_inc
ident.h" |
26 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
27 #include "chrome/common/safe_browsing/csd.pb.h" | 31 #include "chrome/common/safe_browsing/csd.pb.h" |
28 #include "chrome/test/base/testing_browser_process.h" | 32 #include "chrome/test/base/testing_browser_process.h" |
29 #include "chrome/test/base/testing_profile.h" | 33 #include "chrome/test/base/testing_profile.h" |
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 | 1468 |
1465 // Ensure that no report processing remains. | 1469 // Ensure that no report processing remains. |
1466 ASSERT_FALSE(instance_->IsProcessingReport()); | 1470 ASSERT_FALSE(instance_->IsProcessingReport()); |
1467 } | 1471 } |
1468 | 1472 |
1469 // Parallel uploads | 1473 // Parallel uploads |
1470 // Shutdown during processing | 1474 // Shutdown during processing |
1471 // environment colection taking longer than incident delay timer | 1475 // environment colection taking longer than incident delay timer |
1472 // environment colection taking longer than incident delay timer, and then | 1476 // environment colection taking longer than incident delay timer, and then |
1473 // another incident arriving | 1477 // another incident arriving |
OLD | NEW |