Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cd38a3c authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Automerger Merge Worker
Browse files

Merge "Verify that blobstore quota limits are enforced." into rvc-dev am: 97109fe5 am: babba0b4

Change-Id: I872713b70acd65940c8767dbc8b8211f24a379c0
parents 6dfff15b babba0b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ public class DummyBlobData {
            return mRandomSeed;
        }

        public Builder setFileSize(int fileSize) {
        public Builder setFileSize(long fileSize) {
            mFileSize = fileSize;
            return this;
        }
+3 −0
Original line number Diff line number Diff line
@@ -34,6 +34,9 @@ import java.io.OutputStream;
public class Utils {
    public static final int BUFFER_SIZE_BYTES = 16 * 1024;

    public static final long KB_IN_BYTES = 1000;
    public static final long MB_IN_BYTES = KB_IN_BYTES * 1000;

    public static void copy(InputStream in, OutputStream out, long lengthBytes)
            throws IOException {
        final byte[] buffer = new byte[BUFFER_SIZE_BYTES];