| OLD | NEW |
| 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 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 0xfe, 0xe5, 0x00, 0xc3 } } }; | 487 0xfe, 0xe5, 0x00, 0xc3 } } }; |
| 488 const in6_addr kIPv6TestAddress2 = { { { 0x24, 0x01, 0xfa, 0x00, | 488 const in6_addr kIPv6TestAddress2 = { { { 0x24, 0x01, 0xfa, 0x00, |
| 489 0x00, 0x04, 0x10, 0x12, | 489 0x00, 0x04, 0x10, 0x12, |
| 490 0x06, 0x0c, 0xce, 0xff, | 490 0x06, 0x0c, 0xce, 0xff, |
| 491 0xfe, 0x1f, 0x61, 0xa4 } } }; | 491 0xfe, 0x1f, 0x61, 0xa4 } } }; |
| 492 | 492 |
| 493 #ifdef WEBRTC_POSIX | 493 #ifdef WEBRTC_POSIX |
| 494 const in_addr kIPv4TestAddress1 = { 0xe64417ac }; | 494 const in_addr kIPv4TestAddress1 = { 0xe64417ac }; |
| 495 #elif defined WEBRTC_WIN | 495 #elif defined WEBRTC_WIN |
| 496 // Windows in_addr has a union with a uchar[] array first. | 496 // Windows in_addr has a union with a uchar[] array first. |
| 497 const in_addr kIPv4TestAddress1 = { { 0x0ac, 0x017, 0x044, 0x0e6 } }; | 497 const in_addr kIPv4TestAddress1 = { { { 0x0ac, 0x017, 0x044, 0x0e6 } } }; |
| 498 #endif | 498 #endif |
| 499 const char kTestUserName1[] = "abcdefgh"; | 499 const char kTestUserName1[] = "abcdefgh"; |
| 500 const char kTestUserName2[] = "abc"; | 500 const char kTestUserName2[] = "abc"; |
| 501 const char kTestErrorReason[] = "Unauthorized"; | 501 const char kTestErrorReason[] = "Unauthorized"; |
| 502 const char kTestOrigin[] = "http://example.com"; | 502 const char kTestOrigin[] = "http://example.com"; |
| 503 const int kTestErrorClass = 4; | 503 const int kTestErrorClass = 4; |
| 504 const int kTestErrorNumber = 1; | 504 const int kTestErrorNumber = 1; |
| 505 const int kTestErrorCode = 401; | 505 const int kTestErrorCode = 401; |
| 506 | 506 |
| 507 const int kTestMessagePort1 = 59977; | 507 const int kTestMessagePort1 = 59977; |
| (...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 EXPECT_TRUE(msg2.Write(&out2)); | 1478 EXPECT_TRUE(msg2.Write(&out2)); |
| 1479 EXPECT_EQ(size, out2.Length()); | 1479 EXPECT_EQ(size, out2.Length()); |
| 1480 size_t len2 = out2.Length(); | 1480 size_t len2 = out2.Length(); |
| 1481 rtc::ByteBufferReader read_buf2(out2); | 1481 rtc::ByteBufferReader read_buf2(out2); |
| 1482 std::string outstring2; | 1482 std::string outstring2; |
| 1483 read_buf2.ReadString(&outstring2, len2); | 1483 read_buf2.ReadString(&outstring2, len2); |
| 1484 EXPECT_EQ(0, memcmp(outstring2.c_str(), input, len2)); | 1484 EXPECT_EQ(0, memcmp(outstring2.c_str(), input, len2)); |
| 1485 } | 1485 } |
| 1486 | 1486 |
| 1487 } // namespace cricket | 1487 } // namespace cricket |
| OLD | NEW |