Sfoglia il codice sorgente

Refactored uploadProgress parameter names to reflect sending instead of receiving.

Christian Noon 9 anni fa
parent
commit
ded94a4c35
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      Tests/UploadTests.swift

+ 4 - 4
Tests/UploadTests.swift

@@ -194,8 +194,8 @@ class UploadDataTestCase: BaseTestCase {
             .uploadProgress { progress in
                 uploadProgressValues.append((progress.completedUnitCount, progress.totalUnitCount))
             }
-            .uploadProgress { bytesRead, totalBytesRead, totalBytesExpectedToRead in
-                let bytes = (bytes: bytesRead, totalBytes: totalBytesRead, totalBytesExpected: totalBytesExpectedToRead)
+            .uploadProgress { bytesSent, totalBytesSent, totalBytesExpectedToSend in
+                let bytes = (bytes: bytesSent, totalBytes: totalBytesSent, totalBytesExpected: totalBytesExpectedToSend)
                 uploadByteValues.append(bytes)
             }
             .downloadProgress { progress in
@@ -678,8 +678,8 @@ class UploadMultipartFormDataTestCase: BaseTestCase {
                         .uploadProgress { progress in
                             uploadProgressValues.append((progress.completedUnitCount, progress.totalUnitCount))
                         }
-                        .uploadProgress { bytesRead, totalBytesRead, totalBytesExpectedToRead in
-                            let bytes = (bytes: bytesRead, totalBytes: totalBytesRead, totalBytesExpected: totalBytesExpectedToRead)
+                        .uploadProgress { bytesSent, totalBytesSent, totalBytesExpectedToSend in
+                            let bytes = (bytes: bytesSent, totalBytes: totalBytesSent, totalBytesExpected: totalBytesExpectedToSend)
                             uploadByteValues.append(bytes)
                         }
                         .downloadProgress { progress in