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

Unified Diff: components/domain_reliability/test_util.h

Issue 491753003: Domain Reliability: Don't upload when metrics reporting is off. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a last couple of nits 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
« no previous file with comments | « components/domain_reliability/service.cc ('k') | components/domain_reliability/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/test_util.h
diff --git a/components/domain_reliability/test_util.h b/components/domain_reliability/test_util.h
index a5367e9465366111ca724ecac87a28fbb7e12224..a53664d4b66b206bf0bccbe2aa6d671ff68fbef3 100644
--- a/components/domain_reliability/test_util.h
+++ b/components/domain_reliability/test_util.h
@@ -48,13 +48,18 @@ class MockUploader : public DomainReliabilityUploader {
virtual ~MockUploader();
+ virtual bool discard_uploads() const;
+
// DomainReliabilityUploader implementation:
virtual void UploadReport(const std::string& report_json,
const GURL& upload_url,
const UploadCallback& callback) OVERRIDE;
+ virtual void set_discard_uploads(bool discard_uploads) OVERRIDE;
+
private:
UploadRequestCallback callback_;
+ bool discard_uploads_;
};
class MockTime : public MockableTime {
« no previous file with comments | « components/domain_reliability/service.cc ('k') | components/domain_reliability/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698