OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "webrtc/test/gmock.h" |
16 #include "webrtc/api/audiotrack.h" | 16 #include "webrtc/api/audiotrack.h" |
17 #include "webrtc/api/jsepsessiondescription.h" | 17 #include "webrtc/api/jsepsessiondescription.h" |
18 #include "webrtc/api/mediastream.h" | 18 #include "webrtc/api/mediastream.h" |
19 #include "webrtc/api/mediastreaminterface.h" | 19 #include "webrtc/api/mediastreaminterface.h" |
20 #include "webrtc/api/peerconnection.h" | 20 #include "webrtc/api/peerconnection.h" |
21 #include "webrtc/api/peerconnectioninterface.h" | 21 #include "webrtc/api/peerconnectioninterface.h" |
22 #include "webrtc/api/rtpreceiverinterface.h" | 22 #include "webrtc/api/rtpreceiverinterface.h" |
23 #include "webrtc/api/rtpsenderinterface.h" | 23 #include "webrtc/api/rtpsenderinterface.h" |
24 #include "webrtc/api/streamcollection.h" | 24 #include "webrtc/api/streamcollection.h" |
25 #ifdef WEBRTC_ANDROID | 25 #ifdef WEBRTC_ANDROID |
(...skipping 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2890 FakeConstraints updated_answer_c; | 2890 FakeConstraints updated_answer_c; |
2891 answer_c.SetMandatoryReceiveAudio(false); | 2891 answer_c.SetMandatoryReceiveAudio(false); |
2892 answer_c.SetMandatoryReceiveVideo(false); | 2892 answer_c.SetMandatoryReceiveVideo(false); |
2893 | 2893 |
2894 cricket::MediaSessionOptions updated_answer_options; | 2894 cricket::MediaSessionOptions updated_answer_options; |
2895 EXPECT_TRUE( | 2895 EXPECT_TRUE( |
2896 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options)); | 2896 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options)); |
2897 EXPECT_TRUE(updated_answer_options.has_audio()); | 2897 EXPECT_TRUE(updated_answer_options.has_audio()); |
2898 EXPECT_TRUE(updated_answer_options.has_video()); | 2898 EXPECT_TRUE(updated_answer_options.has_video()); |
2899 } | 2899 } |
OLD | NEW |