Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: components/cronet/android/test/javatests/src/org/chromium/net/UploadTest.java

Issue 884003004: Rename org.chromium.cronet_test_apk to org.chromium.net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.cronet_test_apk; 5 package org.chromium.net;
6 6
7 import android.test.suitebuilder.annotation.SmallTest; 7 import android.test.suitebuilder.annotation.SmallTest;
8 8
9 import org.chromium.base.test.util.Feature; 9 import org.chromium.base.test.util.Feature;
10 import org.chromium.net.ChromiumUrlRequest;
11 import org.chromium.net.HttpUrlRequest;
12 import org.chromium.net.HttpUrlRequestListener;
13 10
14 import java.io.ByteArrayInputStream; 11 import java.io.ByteArrayInputStream;
15 import java.io.IOException; 12 import java.io.IOException;
16 import java.io.InputStream; 13 import java.io.InputStream;
17 import java.nio.ByteBuffer; 14 import java.nio.ByteBuffer;
18 import java.nio.channels.Channels; 15 import java.nio.channels.Channels;
19 import java.nio.channels.ReadableByteChannel; 16 import java.nio.channels.ReadableByteChannel;
20 import java.util.HashMap; 17 import java.util.HashMap;
21 import java.util.concurrent.Executors; 18 import java.util.concurrent.Executors;
22 19
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 request.appendChunk(byteBuffer, true); 295 request.appendChunk(byteBuffer, true);
299 listener.blockForComplete(); 296 listener.blockForComplete();
300 try { 297 try {
301 request.appendChunk(byteBuffer, true); 298 request.appendChunk(byteBuffer, true);
302 fail("Exception not thrown."); 299 fail("Exception not thrown.");
303 } catch (IOException e) { 300 } catch (IOException e) {
304 assertEquals("Native peer destroyed.", e.getMessage()); 301 assertEquals("Native peer destroyed.", e.getMessage());
305 } 302 }
306 } 303 }
307 } 304 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698