@Test public void testLoggingProgressAfterSixtySeconds() { listener.progressChanged(UploadState.MEDIA_IN_PROGRESS, 10485760L, 60001L); assertThat(getTestCapturedLog()) .isEqualTo( "FINE: Uploading:" + " NAME Average Rate: 0.167 MiB/s, Current Rate: 0.167 MiB/s, Total: 10.000 MiB"); listener.progressChanged(UploadState.MEDIA_IN_PROGRESS, 104857600L, 120002L); assertThat(getTestCapturedLog()) .isEqualTo( "FINE: Uploading:" + " NAME Average Rate: 0.833 MiB/s, Current Rate: 1.500 MiB/s, Total: 100.000 MiB"); }
@Override public void progressChanged(MediaHttpUploader uploader) throws IOException { progressChanged( uploader.getUploadState(), uploader.getNumBytesUploaded(), System.currentTimeMillis()); }
LoggingMediaHttpUploaderProgressListener implements MediaHttpUploaderProgressListener { @Override public void progressChanged(MediaHttpUploader uploader) throws IOException { progressChanged( uploader.getUploadState(), uploader.getNumBytesUploaded(), System.currentTimeMillis()); } }
LoggingMediaHttpUploaderProgressListener implements MediaHttpUploaderProgressListener { @Override public void progressChanged(MediaHttpUploader uploader) throws IOException { progressChanged( uploader.getUploadState(), uploader.getNumBytesUploaded(), System.currentTimeMillis()); } LoggingMediaHttpUploaderProgressListener(String name, long minLoggingInterval); }
LoggingMediaHttpUploaderProgressListener implements MediaHttpUploaderProgressListener { @Override public void progressChanged(MediaHttpUploader uploader) throws IOException { progressChanged( uploader.getUploadState(), uploader.getNumBytesUploaded(), System.currentTimeMillis()); } LoggingMediaHttpUploaderProgressListener(String name, long minLoggingInterval); @Override void progressChanged(MediaHttpUploader uploader); }
LoggingMediaHttpUploaderProgressListener implements MediaHttpUploaderProgressListener { @Override public void progressChanged(MediaHttpUploader uploader) throws IOException { progressChanged( uploader.getUploadState(), uploader.getNumBytesUploaded(), System.currentTimeMillis()); } LoggingMediaHttpUploaderProgressListener(String name, long minLoggingInterval); @Override void progressChanged(MediaHttpUploader uploader);  }