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> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/threading/thread_local.h" | 23 #include "base/threading/thread_local.h" |
24 #include "base/threading/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 #include "chrome/browser/prefs/browser_prefs.h" | 26 #include "chrome/browser/prefs/browser_prefs.h" |
27 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" | 27 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
28 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 28 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
29 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er.h" | 29 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er.h" |
30 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h
" | 30 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h
" |
31 #include "chrome/browser/safe_browsing/incident_reporting/tracked_preference_inc
ident.h" | 31 #include "chrome/browser/safe_browsing/incident_reporting/tracked_preference_inc
ident.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "chrome/common/safe_browsing/csd.pb.h" | |
34 #include "chrome/test/base/testing_browser_process.h" | 33 #include "chrome/test/base/testing_browser_process.h" |
35 #include "chrome/test/base/testing_profile.h" | 34 #include "chrome/test/base/testing_profile.h" |
36 #include "chrome/test/base/testing_profile_manager.h" | 35 #include "chrome/test/base/testing_profile_manager.h" |
| 36 #include "components/safe_browsing/csd.pb.h" |
37 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 37 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
38 #include "components/sync_preferences/testing_pref_service_syncable.h" | 38 #include "components/sync_preferences/testing_pref_service_syncable.h" |
39 #include "content/public/test/test_browser_thread_bundle.h" | 39 #include "content/public/test/test_browser_thread_bundle.h" |
40 #include "extensions/browser/quota_service.h" | 40 #include "extensions/browser/quota_service.h" |
41 #include "net/url_request/url_request_context_getter.h" | 41 #include "net/url_request/url_request_context_getter.h" |
42 #include "testing/gtest/include/gtest/gtest.h" | 42 #include "testing/gtest/include/gtest/gtest.h" |
43 | 43 |
44 #if defined(OS_WIN) | 44 #if defined(OS_WIN) |
45 #include "base/test/test_reg_util_win.h" | 45 #include "base/test/test_reg_util_win.h" |
46 #endif | 46 #endif |
(...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1403 | 1403 |
1404 // Ensure that no report processing remains. | 1404 // Ensure that no report processing remains. |
1405 ASSERT_FALSE(instance_->IsProcessingReport()); | 1405 ASSERT_FALSE(instance_->IsProcessingReport()); |
1406 } | 1406 } |
1407 | 1407 |
1408 // Parallel uploads | 1408 // Parallel uploads |
1409 // Shutdown during processing | 1409 // Shutdown during processing |
1410 // environment colection taking longer than incident delay timer | 1410 // environment colection taking longer than incident delay timer |
1411 // environment colection taking longer than incident delay timer, and then | 1411 // environment colection taking longer than incident delay timer, and then |
1412 // another incident arriving | 1412 // another incident arriving |
OLD | NEW |