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

Side by Side Diff: webrtc/p2p/base/pseudotcp_unittest.cc

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 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
« no previous file with comments | « webrtc/p2p/base/pseudotcp.cc ('k') | webrtc/p2p/base/relayport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <vector> 12 #include <vector>
13 13
14 #include "webrtc/p2p/base/pseudotcp.h" 14 #include "webrtc/p2p/base/pseudotcp.h"
15 #include "webrtc/base/gunit.h" 15 #include "webrtc/rtc_base/gunit.h"
16 #include "webrtc/base/helpers.h" 16 #include "webrtc/rtc_base/helpers.h"
17 #include "webrtc/base/messagehandler.h" 17 #include "webrtc/rtc_base/messagehandler.h"
18 #include "webrtc/base/stream.h" 18 #include "webrtc/rtc_base/stream.h"
19 #include "webrtc/base/thread.h" 19 #include "webrtc/rtc_base/thread.h"
20 #include "webrtc/base/timeutils.h" 20 #include "webrtc/rtc_base/timeutils.h"
21 21
22 using cricket::PseudoTcp; 22 using cricket::PseudoTcp;
23 23
24 static const int kConnectTimeoutMs = 10000; // ~3 * default RTO of 3000ms 24 static const int kConnectTimeoutMs = 10000; // ~3 * default RTO of 3000ms
25 static const int kTransferTimeoutMs = 15000; 25 static const int kTransferTimeoutMs = 15000;
26 static const int kBlockSize = 4096; 26 static const int kBlockSize = 4096;
27 27
28 class PseudoTcpForTest : public cricket::PseudoTcp { 28 class PseudoTcpForTest : public cricket::PseudoTcp {
29 public: 29 public:
30 PseudoTcpForTest(cricket::IPseudoTcpNotify* notify, uint32_t conv) 30 PseudoTcpForTest(cricket::IPseudoTcpNotify* notify, uint32_t conv)
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 /* Test sending data with mismatched MTUs. We should detect this and reduce 832 /* Test sending data with mismatched MTUs. We should detect this and reduce
833 // our packet size accordingly. 833 // our packet size accordingly.
834 // TODO: This doesn't actually work right now. The current code 834 // TODO: This doesn't actually work right now. The current code
835 // doesn't detect if the MTU is set too high on either side. 835 // doesn't detect if the MTU is set too high on either side.
836 TEST_F(PseudoTcpTest, TestSendWithMismatchedMtus) { 836 TEST_F(PseudoTcpTest, TestSendWithMismatchedMtus) {
837 SetLocalMtu(1500); 837 SetLocalMtu(1500);
838 SetRemoteMtu(1280); 838 SetRemoteMtu(1280);
839 TestTransfer(1000000); 839 TestTransfer(1000000);
840 } 840 }
841 */ 841 */
OLDNEW
« no previous file with comments | « webrtc/p2p/base/pseudotcp.cc ('k') | webrtc/p2p/base/relayport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698