Lines Matching refs:addr2
736 StunXorAddressAttribute addr2(STUN_ATTR_XOR_MAPPED_ADDRESS, 20, NULL);
737 addr2.SetIP(addr->ipaddr());
738 addr2.SetPort(addr->port());
739 addr2.SetOwner(&msg2);
741 ASSERT_EQ(addr2.ipaddr(), addr->ipaddr());
746 EXPECT_TRUE(addr2.Write(&wrong_buf));
751 addr2.Read(&correct_buf);
752 ASSERT_NE(addr->ipaddr(), addr2.ipaddr());
753 addr2.SetIP(addr->ipaddr());
754 addr2.SetPort(addr->port());
756 addr2.SetOwner(NULL);
757 ASSERT_EQ(addr2.ipaddr(), addr->ipaddr());
759 EXPECT_FALSE(addr2.Write(&wrong_buf));
783 StunXorAddressAttribute addr2(STUN_ATTR_XOR_MAPPED_ADDRESS, 20, NULL);
784 addr2.SetIP(addr->ipaddr());
785 addr2.SetPort(addr->port());
786 addr2.SetOwner(&msg2);
788 ASSERT_EQ(addr2.ipaddr(), addr->ipaddr());
793 EXPECT_TRUE(addr2.Write(&wrong_buf));
799 EXPECT_TRUE(addr2.Read(&correct_buf));
800 ASSERT_EQ(addr->ipaddr(), addr2.ipaddr());
803 addr2.SetOwner(NULL);
804 ASSERT_EQ(addr2.ipaddr(), addr->ipaddr());
806 EXPECT_FALSE(addr2.Write(&wrong_buf));
847 StunAddressAttribute* addr2 =
850 addr2->SetIP(talk_base::IPAddress(kIPv4TestAddress1));
851 addr2->SetPort(kTestMessagePort2);
852 ASSERT_EQ(kTestMessagePort2, addr2->port());
853 ASSERT_EQ(talk_base::IPAddress(kIPv4TestAddress1), addr2->ipaddr());
856 delete addr2;
1326 StunAddressAttribute* addr2 =
1328 addr2->SetPort(13);
1329 addr2->SetIP(legacy_ip);
1330 EXPECT_TRUE(msg2.AddAttribute(addr2));
1377 addr2 = StunAttribute::CreateAddress(STUN_ATTR_DESTINATION_ADDRESS);
1378 addr2->SetPort(13);
1379 addr2->SetIP(legacy_ip);
1380 EXPECT_TRUE(msg2.AddAttribute(addr2));
1388 addr2 = StunAttribute::CreateAddress(STUN_ATTR_SOURCE_ADDRESS2);
1389 addr2->SetPort(13);
1390 addr2->SetIP(legacy_ip);
1391 EXPECT_TRUE(msg2.AddAttribute(addr2));