Merge "Verify that blobstore quota limits are enforced." into rvc-dev am: 97109fe511 am: babba0b4e7 am: 5cd38a3cc5
Change-Id: I860e8ace5a7572002b15921a9bf6b2d2e00975cf
This commit is contained in:
@@ -77,7 +77,7 @@ public class DummyBlobData {
|
||||
return mRandomSeed;
|
||||
}
|
||||
|
||||
public Builder setFileSize(int fileSize) {
|
||||
public Builder setFileSize(long fileSize) {
|
||||
mFileSize = fileSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user