Reporting / NEL: Allow limited NEL reports on Reporting uploads.

Change-Id: If7751d0316ac54e8c2e961c5b4e0385f1c6107a6
Reviewed-on: https://chromium-review.googlesource.com/978301
Commit-Queue: Julia Tuttle <[email protected]>
Reviewed-by: Asanka Herath <[email protected]>
Reviewed-by: Bernhard Bauer <[email protected]>
Cr-Commit-Position: refs/heads/master@{#546894}
diff --git a/net/reporting/reporting_test_util.cc b/net/reporting/reporting_test_util.cc
index e998b58..e87f889 100644
--- a/net/reporting/reporting_test_util.cc
+++ b/net/reporting/reporting_test_util.cc
@@ -46,7 +46,7 @@
 
   ~PendingUploadImpl() override = default;
 
-  // PendingUpload implementationP:
+  // PendingUpload implementation:
   const GURL& url() const override { return url_; }
   const std::string& json() const override { return json_; }
   std::unique_ptr<base::Value> GetValue() const override {
@@ -100,15 +100,16 @@
 
 void TestReportingUploader::StartUpload(const GURL& url,
                                         const std::string& json,
+                                        int max_depth,
                                         UploadCallback callback) {
   pending_uploads_.push_back(std::make_unique<PendingUploadImpl>(
       url, json, std::move(callback),
       base::BindOnce(&ErasePendingUpload, &pending_uploads_)));
 }
 
-bool TestReportingUploader::RequestIsUpload(const URLRequest& request) {
+int TestReportingUploader::GetUploadDepth(const URLRequest& request) {
   NOTIMPLEMENTED();
-  return true;
+  return 0;
 }
 
 TestReportingDelegate::TestReportingDelegate()