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

Unified Diff: chrome/browser/safe_browsing/mock_permission_report_sender.h

Issue 2250163003: Permission Action Reporting: Fix flaky Browsertest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/mock_permission_report_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/mock_permission_report_sender.h
diff --git a/chrome/browser/safe_browsing/mock_permission_report_sender.h b/chrome/browser/safe_browsing/mock_permission_report_sender.h
index 5f5841def225e5da25e6d86e239a8ce4fc25fc0c..fc1c92ee8c469fa8566c606caa5f1e19e242df9e 100644
--- a/chrome/browser/safe_browsing/mock_permission_report_sender.h
+++ b/chrome/browser/safe_browsing/mock_permission_report_sender.h
@@ -25,10 +25,15 @@ class MockPermissionReportSender : public net::ReportSender {
int GetAndResetNumberOfReportsSent();
+ void WaitForReportSent();
+
private:
GURL latest_report_uri_;
std::string latest_report_;
int number_of_reports_;
+ base::Closure quit_closure_;
+
+ void NotifyReportSentOnUIThread();
DISALLOW_COPY_AND_ASSIGN(MockPermissionReportSender);
};
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/mock_permission_report_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698