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

Side by Side Diff: webrtc/p2p/base/stun_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/stun.cc ('k') | webrtc/p2p/base/stunport.h » ('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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 <string> 11 #include <string>
12 12
13 #include "webrtc/base/arraysize.h"
14 #include "webrtc/base/bytebuffer.h"
15 #include "webrtc/base/gunit.h"
16 #include "webrtc/base/logging.h"
17 #include "webrtc/base/messagedigest.h"
18 #include "webrtc/base/ptr_util.h"
19 #include "webrtc/base/socketaddress.h"
20 #include "webrtc/p2p/base/stun.h" 13 #include "webrtc/p2p/base/stun.h"
14 #include "webrtc/rtc_base/arraysize.h"
15 #include "webrtc/rtc_base/bytebuffer.h"
16 #include "webrtc/rtc_base/gunit.h"
17 #include "webrtc/rtc_base/logging.h"
18 #include "webrtc/rtc_base/messagedigest.h"
19 #include "webrtc/rtc_base/ptr_util.h"
20 #include "webrtc/rtc_base/socketaddress.h"
21 21
22 namespace cricket { 22 namespace cricket {
23 23
24 class StunTest : public ::testing::Test { 24 class StunTest : public ::testing::Test {
25 protected: 25 protected:
26 void CheckStunHeader(const StunMessage& msg, StunMessageType expected_type, 26 void CheckStunHeader(const StunMessage& msg, StunMessageType expected_type,
27 size_t expected_length) { 27 size_t expected_length) {
28 ASSERT_EQ(expected_type, msg.type()); 28 ASSERT_EQ(expected_type, msg.type());
29 ASSERT_EQ(expected_length, msg.length()); 29 ASSERT_EQ(expected_length, msg.length());
30 } 30 }
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 EXPECT_TRUE(msg2.Write(&out2)); 1473 EXPECT_TRUE(msg2.Write(&out2));
1474 EXPECT_EQ(size, out2.Length()); 1474 EXPECT_EQ(size, out2.Length());
1475 size_t len2 = out2.Length(); 1475 size_t len2 = out2.Length();
1476 rtc::ByteBufferReader read_buf2(out2); 1476 rtc::ByteBufferReader read_buf2(out2);
1477 std::string outstring2; 1477 std::string outstring2;
1478 read_buf2.ReadString(&outstring2, len2); 1478 read_buf2.ReadString(&outstring2, len2);
1479 EXPECT_EQ(0, memcmp(outstring2.c_str(), input, len2)); 1479 EXPECT_EQ(0, memcmp(outstring2.c_str(), input, len2));
1480 } 1480 }
1481 1481
1482 } // namespace cricket 1482 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/stun.cc ('k') | webrtc/p2p/base/stunport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698