| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2009 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 16 matching lines...) Expand all Loading... |
| 27 if (!(rtc::SSLStreamAdapter::feature())) { \ | 27 if (!(rtc::SSLStreamAdapter::feature())) { \ |
| 28 LOG(LS_INFO) << "Feature disabled... skipping"; \ | 28 LOG(LS_INFO) << "Feature disabled... skipping"; \ |
| 29 return; \ | 29 return; \ |
| 30 } | 30 } |
| 31 | 31 |
| 32 using cricket::CA_OFFER; | 32 using cricket::CA_OFFER; |
| 33 using cricket::CA_PRANSWER; | 33 using cricket::CA_PRANSWER; |
| 34 using cricket::CA_ANSWER; | 34 using cricket::CA_ANSWER; |
| 35 using cricket::CA_UPDATE; | 35 using cricket::CA_UPDATE; |
| 36 using cricket::FakeVoiceMediaChannel; | 36 using cricket::FakeVoiceMediaChannel; |
| 37 using cricket::ScreencastId; | |
| 38 using cricket::StreamParams; | 37 using cricket::StreamParams; |
| 39 using cricket::TransportChannel; | 38 using cricket::TransportChannel; |
| 40 | 39 |
| 41 namespace { | 40 namespace { |
| 42 const cricket::AudioCodec kPcmuCodec(0, "PCMU", 64000, 8000, 1); | 41 const cricket::AudioCodec kPcmuCodec(0, "PCMU", 64000, 8000, 1); |
| 43 const cricket::AudioCodec kPcmaCodec(8, "PCMA", 64000, 8000, 1); | 42 const cricket::AudioCodec kPcmaCodec(8, "PCMA", 64000, 8000, 1); |
| 44 const cricket::AudioCodec kIsacCodec(103, "ISAC", 40000, 16000, 1); | 43 const cricket::AudioCodec kIsacCodec(103, "ISAC", 40000, 16000, 1); |
| 45 const cricket::VideoCodec kH264Codec(97, "H264", 640, 400, 30); | 44 const cricket::VideoCodec kH264Codec(97, "H264", 640, 400, 30); |
| 46 const cricket::VideoCodec kH264SvcCodec(99, "H264-SVC", 320, 200, 15); | 45 const cricket::VideoCodec kH264SvcCodec(99, "H264-SVC", 320, 200, 15); |
| 47 const cricket::DataCodec kGoogleDataCodec(101, "google-data"); | 46 const cricket::DataCodec kGoogleDataCodec(101, "google-data"); |
| (...skipping 3629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3677 }; | 3676 }; |
| 3678 rtc::CopyOnWriteBuffer payload(data, 3); | 3677 rtc::CopyOnWriteBuffer payload(data, 3); |
| 3679 cricket::SendDataResult result; | 3678 cricket::SendDataResult result; |
| 3680 ASSERT_TRUE(media_channel1_->SendData(params, payload, &result)); | 3679 ASSERT_TRUE(media_channel1_->SendData(params, payload, &result)); |
| 3681 EXPECT_EQ(params.ssrc, | 3680 EXPECT_EQ(params.ssrc, |
| 3682 media_channel1_->last_sent_data_params().ssrc); | 3681 media_channel1_->last_sent_data_params().ssrc); |
| 3683 EXPECT_EQ("foo", media_channel1_->last_sent_data()); | 3682 EXPECT_EQ("foo", media_channel1_->last_sent_data()); |
| 3684 } | 3683 } |
| 3685 | 3684 |
| 3686 // TODO(pthatcher): TestSetReceiver? | 3685 // TODO(pthatcher): TestSetReceiver? |
| OLD | NEW |