Chromium Code Reviews| Index: chrome/browser/safe_browsing/incident_reporting_service_unittest.cc |
| diff --git a/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc b/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc |
| index d3dcc190d1fa72737cd0d23ae684293c0e715d50..2439ed91c85bb53112fd42cc652f9f589867e011 100644 |
| --- a/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc |
| +++ b/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc |
| @@ -680,6 +680,19 @@ TEST_F(IncidentReportingServiceTest, MigrateOldPref) { |
| AssertNoUpload(); |
| } |
| +// Tests that no upload results from adding an incident that is not affiliated |
| +// with a profile. |
| +TEST_F(IncidentReportingServiceTest, ProcessWideNoProfileNoUpload) { |
|
robertshield
2014/08/05 21:26:28
I vaguely recall suggesting an extra test here in
|
| + // Add the test incident. |
| + AddTestIncident(NULL); |
| + |
| + // Let all tasks run. |
| + task_runner_->RunUntilIdle(); |
| + |
| + // No upload should have taken place. |
| + AssertNoUpload(); |
| +} |
| + |
| // Parallel uploads |
| // Shutdown during processing |
| // environment colection taking longer than incident delay timer |