| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2011 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 <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "webrtc/base/gunit.h" | |
| 14 #include "webrtc/base/refcount.h" | |
| 15 #include "webrtc/test/gmock.h" | |
| 16 #include "webrtc/test/gtest.h" | |
| 17 #include "webrtc/pc/audiotrack.h" | 13 #include "webrtc/pc/audiotrack.h" |
| 18 #include "webrtc/pc/mediastream.h" | 14 #include "webrtc/pc/mediastream.h" |
| 19 #include "webrtc/pc/test/fakevideotracksource.h" | 15 #include "webrtc/pc/test/fakevideotracksource.h" |
| 20 #include "webrtc/pc/videotrack.h" | 16 #include "webrtc/pc/videotrack.h" |
| 17 #include "webrtc/rtc_base/gunit.h" |
| 18 #include "webrtc/rtc_base/refcount.h" |
| 19 #include "webrtc/test/gmock.h" |
| 20 #include "webrtc/test/gtest.h" |
| 21 | 21 |
| 22 static const char kStreamLabel1[] = "local_stream_1"; | 22 static const char kStreamLabel1[] = "local_stream_1"; |
| 23 static const char kVideoTrackId[] = "dummy_video_cam_1"; | 23 static const char kVideoTrackId[] = "dummy_video_cam_1"; |
| 24 static const char kAudioTrackId[] = "dummy_microphone_1"; | 24 static const char kAudioTrackId[] = "dummy_microphone_1"; |
| 25 | 25 |
| 26 using rtc::scoped_refptr; | 26 using rtc::scoped_refptr; |
| 27 using ::testing::Exactly; | 27 using ::testing::Exactly; |
| 28 | 28 |
| 29 namespace webrtc { | 29 namespace webrtc { |
| 30 | 30 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 ChangeTrack(video_track.get()); | 145 ChangeTrack(video_track.get()); |
| 146 } | 146 } |
| 147 | 147 |
| 148 TEST_F(MediaStreamTest, ChangeAudioTrack) { | 148 TEST_F(MediaStreamTest, ChangeAudioTrack) { |
| 149 scoped_refptr<webrtc::AudioTrackInterface> audio_track( | 149 scoped_refptr<webrtc::AudioTrackInterface> audio_track( |
| 150 stream_->GetAudioTracks()[0]); | 150 stream_->GetAudioTracks()[0]); |
| 151 ChangeTrack(audio_track.get()); | 151 ChangeTrack(audio_track.get()); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace webrtc | 154 } // namespace webrtc |
| OLD | NEW |