Removes slow RTCQuicStream wpt test.

Bug: 925600
Change-Id: I211712e998061394a844207ae41126fc72eea92f
Reviewed-on: https://chromium-review.googlesource.com/c/1441991
Reviewed-by: Steve Anton <steveanton@chromium.org>
Commit-Queue: Seth Hampson <shampson@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#627068}(cherry picked from commit 805ab1b61c09aca4737ad88128c17fb35ddea844)
Reviewed-on: https://chromium-review.googlesource.com/c/1447258
Reviewed-by: Seth Hampson <shampson@chromium.org>
Cr-Commit-Position: refs/branch-heads/3683@{#81}
Cr-Branched-From: e51029943e0a38dd794b73caaf6373d5496ae783-refs/heads/master@{#625896}
diff --git a/third_party/blink/renderer/modules/peerconnection/rtc_quic_stream.cc b/third_party/blink/renderer/modules/peerconnection/rtc_quic_stream.cc
index ca89b40..6acfef6 100644
--- a/third_party/blink/renderer/modules/peerconnection/rtc_quic_stream.cc
+++ b/third_party/blink/renderer/modules/peerconnection/rtc_quic_stream.cc
@@ -13,8 +13,6 @@
 
 // 6 MB allows a reasonable amount to buffer on the read and write side.
 // TODO(https://crbug.com/874296): Consider exposing these configurations.
-// TODO(shampson): Investigate why wpt get slow throughput when this value
-// is higher (24 MB).
 const uint32_t RTCQuicStream::kWriteBufferSize = 6 * 1024 * 1024;
 const uint32_t RTCQuicStream::kReadBufferSize = 6 * 1024 * 1024;
 
diff --git a/third_party/blink/web_tests/external/wpt/webrtc-quic/RTCQuicStream.https.html b/third_party/blink/web_tests/external/wpt/webrtc-quic/RTCQuicStream.https.html
index b62377f..563d74a 100644
--- a/third_party/blink/web_tests/external/wpt/webrtc-quic/RTCQuicStream.https.html
+++ b/third_party/blink/web_tests/external/wpt/webrtc-quic/RTCQuicStream.https.html
@@ -500,18 +500,6 @@
   return data;
 }
 
-// Writes |amount| of bytes to the given RTCQuicStream in maxWriteBufferedAmount
-// chunks.
-async function writeGeneratedData(stream, amount) {
-  const data = generateData(Math.min(stream.maxWriteBufferedAmount, amount));
-  while (amount > 0) {
-    const chunkSize = Math.min(stream.maxWriteBufferedAmount, amount);
-    await stream.waitForWriteBufferedAmountBelow(0);
-    stream.write({ data: data.subarray(0, chunkSize) });
-    amount -= chunkSize;
-  }
-}
-
 promise_test(async t => {
   const [ localQuicTransport, remoteQuicTransport ] =
       await makeTwoConnectedQuicTransports(t);
@@ -539,22 +527,6 @@
   const [ localQuicTransport, remoteQuicTransport ] =
       await makeTwoConnectedQuicTransports(t);
   const localStream = localQuicTransport.createStream();
-  const remoteWatcher = new EventWatcher(t, remoteQuicTransport, 'quicstream');
-  writeGeneratedData(localStream, localStream.maxReadBufferedAmount);
-  const { stream: remoteStream } = await remoteWatcher.wait_for('quicstream');
-  await remoteStream.waitForReadable(localStream.maxReadBufferedAmount);
-  const readBuffer = new Uint8Array(localStream.maxReadBufferedAmount);
-  assert_object_equals(
-      remoteStream.readInto(readBuffer),
-      { amount: localStream.maxReadBufferedAmount, finished: false } );
-  assert_array_equals(
-      readBuffer, generateData(localStream.maxReadBufferedAmount));
-}, 'Read maxReadBufferedAmount bytes all at once.');
-
-promise_test(async t => {
-  const [ localQuicTransport, remoteQuicTransport ] =
-      await makeTwoConnectedQuicTransports(t);
-  const localStream = localQuicTransport.createStream();
   localStream.write({ finish: true });
   const remoteWatcher = new EventWatcher(t, remoteQuicTransport, 'quicstream');
   const { stream: remoteStream } = await remoteWatcher.wait_for('quicstream');