Lines Matching refs:f1_
85 EXPECT_TRUE(f1_.SetOffer(params1, CS_LOCAL));
87 EXPECT_FALSE(f1_.IsActive());
90 EXPECT_TRUE(f1_.SetAnswer(params2, CS_REMOTE));
91 EXPECT_TRUE(f1_.IsActive());
107 EXPECT_TRUE(f1_.ProtectRtp(rtp_packet, rtp_len,
119 EXPECT_TRUE(f1_.UnprotectRtp(rtp_packet, out_len, &out_len));
123 EXPECT_TRUE(f1_.ProtectRtcp(rtcp_packet, rtcp_len,
135 EXPECT_TRUE(f1_.UnprotectRtcp(rtcp_packet, out_len, &out_len));
139 cricket::SrtpFilter f1_;
146 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams1), CS_LOCAL));
147 EXPECT_FALSE(f1_.IsActive());
148 EXPECT_TRUE(f1_.SetAnswer(MakeVector(kTestCryptoParams2), CS_REMOTE));
149 EXPECT_TRUE(f1_.IsActive());
161 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
162 EXPECT_FALSE(f1_.IsActive());
163 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
164 EXPECT_TRUE(f1_.IsActive());
170 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
171 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
172 EXPECT_FALSE(f1_.IsActive());
178 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams1), CS_LOCAL));
179 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
180 EXPECT_FALSE(f1_.IsActive());
187 EXPECT_FALSE(f1_.SetAnswer(answer, CS_LOCAL));
188 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
189 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
190 EXPECT_FALSE(f1_.SetAnswer(answer, CS_LOCAL));
191 EXPECT_FALSE(f1_.IsActive());
196 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams1), CS_LOCAL));
197 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams2), CS_LOCAL));
198 EXPECT_FALSE(f1_.IsActive());
199 EXPECT_TRUE(f1_.SetAnswer(MakeVector(kTestCryptoParams2), CS_REMOTE));
200 EXPECT_TRUE(f1_.IsActive());
201 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams1), CS_LOCAL));
202 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams2), CS_LOCAL));
203 EXPECT_TRUE(f1_.SetAnswer(MakeVector(kTestCryptoParams2), CS_REMOTE));
216 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams1), CS_LOCAL));
217 EXPECT_FALSE(f1_.SetOffer(MakeVector(kTestCryptoParams2), CS_REMOTE));
218 EXPECT_FALSE(f1_.IsActive());
219 EXPECT_TRUE(f1_.SetAnswer(MakeVector(kTestCryptoParams1), CS_REMOTE));
220 EXPECT_TRUE(f1_.IsActive());
221 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams2), CS_LOCAL));
222 EXPECT_FALSE(f1_.SetOffer(MakeVector(kTestCryptoParams1), CS_REMOTE));
223 EXPECT_TRUE(f1_.SetAnswer(MakeVector(kTestCryptoParams2), CS_REMOTE));
238 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
239 EXPECT_FALSE(f1_.SetAnswer(MakeVector(kTestCryptoParams2), CS_REMOTE));
240 EXPECT_FALSE(f1_.IsActive());
249 EXPECT_TRUE(f1_.SetOffer(MakeVector(kTestCryptoParams1), CS_LOCAL));
250 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
251 EXPECT_FALSE(f1_.IsActive());
259 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
260 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
261 EXPECT_FALSE(f1_.IsActive());
269 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
270 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
271 EXPECT_FALSE(f1_.IsActive());
280 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
281 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
282 EXPECT_FALSE(f1_.IsActive());
290 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
291 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
292 EXPECT_FALSE(f1_.IsActive());
300 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
301 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
302 EXPECT_FALSE(f1_.IsActive());
310 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
311 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
312 EXPECT_FALSE(f1_.IsActive());
320 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
321 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
322 EXPECT_FALSE(f1_.IsActive());
331 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
332 EXPECT_FALSE(f1_.SetAnswer(answer, CS_REMOTE));
333 EXPECT_FALSE(f1_.IsActive());
390 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
392 EXPECT_TRUE(f1_.IsActive());
393 EXPECT_TRUE(f1_.IsActive());
400 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
414 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
416 EXPECT_FALSE(f1_.IsActive());
419 EXPECT_TRUE(f1_.SetProvisionalAnswer(answer, CS_REMOTE));
420 EXPECT_TRUE(f1_.IsActive());
428 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
429 EXPECT_TRUE(f1_.IsActive());
439 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
441 EXPECT_FALSE(f1_.IsActive());
444 EXPECT_TRUE(f1_.SetProvisionalAnswer(answer, CS_REMOTE));
445 EXPECT_FALSE(f1_.IsActive());
450 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
451 EXPECT_TRUE(f1_.IsActive());
462 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
464 EXPECT_TRUE(f1_.SetProvisionalAnswer(answer, CS_REMOTE));
466 EXPECT_FALSE(f1_.IsActive());
470 EXPECT_FALSE(f1_.SetOffer(offer, CS_LOCAL));
472 EXPECT_FALSE(f1_.IsActive());
477 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
478 EXPECT_TRUE(f1_.IsActive());
493 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL));
495 EXPECT_TRUE(f1_.IsActive());
503 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
505 EXPECT_FALSE(f1_.IsActive());
511 EXPECT_TRUE(f1_.SetRtpParams(rtc::SRTP_AES128_CM_SHA1_80, kTestKey1,
517 EXPECT_TRUE(f1_.SetRtcpParams(rtc::SRTP_AES128_CM_SHA1_80, kTestKey1,
523 EXPECT_TRUE(f1_.IsActive());
530 EXPECT_TRUE(f1_.SetRtpParams(rtc::SRTP_AES128_CM_SHA1_32, kTestKey1,
536 EXPECT_TRUE(f1_.SetRtcpParams(rtc::SRTP_AES128_CM_SHA1_32, kTestKey1,
542 EXPECT_TRUE(f1_.IsActive());
549 EXPECT_FALSE(f1_.SetRtpParams(rtc::SRTP_AES128_CM_SHA1_80, kTestKey1,
552 EXPECT_FALSE(f1_.SetRtcpParams(rtc::SRTP_AES128_CM_SHA1_80, kTestKey1,
559 EXPECT_TRUE(f1_.SetRtpParams(rtc::SRTP_AES128_CM_SHA1_32, kTestKey1,
562 EXPECT_TRUE(f1_.SetRtcpParams(rtc::SRTP_AES128_CM_SHA1_32, kTestKey1,
567 EXPECT_TRUE(f1_.GetRtpAuthParams(&auth_key, &auth_key_len, &auth_tag_len));