Lines Matching refs:cricket
54 class SctpFakeNetworkInterface : public cricket::MediaChannel::NetworkInterface,
62 void SetDestination(cricket::DataMediaChannel* dest) { dest_ = dest; } in SetDestination()
112 cricket::DataMediaChannel* dest_;
127 last_params_ = cricket::ReceiveDataParams(); in Clear()
130 virtual void OnDataReceived(const cricket::ReceiveDataParams& params, in OnDataReceived()
139 cricket::ReceiveDataParams last_params() const { return last_params_; } in last_params()
144 cricket::ReceiveDataParams last_params_;
168 void BindSelf(cricket::SctpDataMediaChannel* channel) { in BindSelf()
189 SignalChannelClosedReopener(cricket::SctpDataMediaChannel* channel, in SignalChannelClosedReopener()
190 cricket::SctpDataMediaChannel* peer) in SignalChannelClosedReopener()
194 cricket::StreamParams p(cricket::StreamParams::CreateLegacy(stream)); in OnStreamClosed()
207 cricket::SctpDataMediaChannel* channel_;
208 cricket::SctpDataMediaChannel* peer_;
222 engine_.reset(new cricket::SctpDataEngine()); in SetUp()
275 cricket::StreamParams p(cricket::StreamParams::CreateLegacy(ssrc)); in AddStream()
283 cricket::SctpDataMediaChannel* CreateChannel( in CreateChannel()
285 cricket::SctpDataMediaChannel* channel = in CreateChannel()
286 static_cast<cricket::SctpDataMediaChannel*>(engine_->CreateChannel( in CreateChannel()
287 cricket::DCT_SCTP)); in CreateChannel()
295 bool SendData(cricket::SctpDataMediaChannel* chan, in SendData()
298 cricket::SendDataResult* result) { in SendData()
299 cricket::SendDataParams params; in SendData()
325 cricket::SctpDataMediaChannel* channel1() { return chan1_.get(); } in channel1()
326 cricket::SctpDataMediaChannel* channel2() { return chan2_.get(); } in channel2()
333 rtc::scoped_ptr<cricket::SctpDataEngine> engine_;
338 rtc::scoped_ptr<cricket::SctpDataMediaChannel> chan1_;
339 rtc::scoped_ptr<cricket::SctpDataMediaChannel> chan2_;
366 cricket::SendDataResult result; in TEST_F()
368 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
371 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
381 cricket::SendDataResult result; in TEST_F()
384 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
397 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
413 cricket::SendDataResult result; in TEST_F()
414 cricket::SendDataParams params; in TEST_F()
422 if (result == cricket::SDR_BLOCK) in TEST_F()
426 EXPECT_EQ(cricket::SDR_BLOCK, result); in TEST_F()
435 cricket::SendDataResult result; in TEST_F()
437 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
440 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
455 cricket::SendDataResult result; in TEST_F()
457 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
460 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
478 cricket::SendDataResult result; in TEST_F()
480 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
483 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
505 cricket::SctpDataEngine::SendThresholdCallback(sock, 0); in TEST_F()
524 cricket::SendDataResult result; in TEST_F()
529 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()
539 EXPECT_EQ(cricket::SDR_SUCCESS, result); in TEST_F()