Home
last modified time | relevance | path

Searched refs:error_attr (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/p2p/base/
Dport.cc737 auto error_attr = StunAttribute::CreateErrorCode(); in SendBindingErrorResponse() local
738 error_attr->SetCode(error_code); in SendBindingErrorResponse()
739 error_attr->SetReason(reason); in SendBindingErrorResponse()
740 response.AddAttribute(std::move(error_attr)); in SendBindingErrorResponse()
782 auto error_attr = StunAttribute::CreateErrorCode(); in SendUnknownAttributesErrorResponse() local
783 error_attr->SetCode(STUN_ERROR_UNKNOWN_ATTRIBUTE); in SendUnknownAttributesErrorResponse()
784 error_attr->SetReason(STUN_ERROR_REASON_UNKNOWN_ATTRIBUTE); in SendUnknownAttributesErrorResponse()
785 response.AddAttribute(std::move(error_attr)); in SendUnknownAttributesErrorResponse()
Dport_unittest.cc165 const StunErrorCodeAttribute* error_attr = last_stun_msg_->GetErrorCode(); in last_stun_error_code() local
166 if (error_attr) { in last_stun_error_code()
167 code = error_attr->code(); in last_stun_error_code()
1794 const StunErrorCodeAttribute* error_attr = msg->GetErrorCode(); in TEST_F() local
1795 ASSERT_TRUE(error_attr != NULL); in TEST_F()
1796 EXPECT_EQ(STUN_ERROR_SERVER_ERROR, error_attr->code()); in TEST_F()
1797 EXPECT_EQ(std::string(STUN_ERROR_REASON_SERVER_ERROR), error_attr->reason()); in TEST_F()