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