Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: chrome/browser/safe_browsing/incident_reporting_service_unittest.cc

Issue 441453002: Support for process-wide incidents in the safe browsing incident reporting service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: impl Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698