OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <functional> | 10 #include <functional> |
11 #include <list> | 11 #include <list> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/base/thread_annotations.h" | 18 #include "webrtc/base/thread_annotations.h" |
19 #include "webrtc/call.h" | 19 #include "webrtc/call.h" |
20 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 20 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
21 #include "webrtc/system_wrappers/interface/event_wrapper.h" | 21 #include "webrtc/system_wrappers/include/event_wrapper.h" |
22 #include "webrtc/system_wrappers/interface/trace.h" | 22 #include "webrtc/system_wrappers/include/trace.h" |
23 #include "webrtc/test/call_test.h" | 23 #include "webrtc/test/call_test.h" |
24 #include "webrtc/test/direct_transport.h" | 24 #include "webrtc/test/direct_transport.h" |
25 #include "webrtc/test/encoder_settings.h" | 25 #include "webrtc/test/encoder_settings.h" |
26 #include "webrtc/test/fake_decoder.h" | 26 #include "webrtc/test/fake_decoder.h" |
27 #include "webrtc/test/fake_encoder.h" | 27 #include "webrtc/test/fake_encoder.h" |
28 #include "webrtc/test/fake_voice_engine.h" | 28 #include "webrtc/test/fake_voice_engine.h" |
29 #include "webrtc/test/frame_generator_capturer.h" | 29 #include "webrtc/test/frame_generator_capturer.h" |
30 | 30 |
31 namespace webrtc { | 31 namespace webrtc { |
32 namespace { | 32 namespace { |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId); | 357 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId); |
358 receiver_trace_.PushExpectedLogLine( | 358 receiver_trace_.PushExpectedLogLine( |
359 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); | 359 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); |
360 receiver_trace_.PushExpectedLogLine(kSingleStreamLog); | 360 receiver_trace_.PushExpectedLogLine(kSingleStreamLog); |
361 streams_.push_back(new Stream(this, false)); | 361 streams_.push_back(new Stream(this, false)); |
362 streams_[0]->StopSending(); | 362 streams_[0]->StopSending(); |
363 streams_[1]->StopSending(); | 363 streams_[1]->StopSending(); |
364 EXPECT_EQ(kEventSignaled, receiver_trace_.Wait()); | 364 EXPECT_EQ(kEventSignaled, receiver_trace_.Wait()); |
365 } | 365 } |
366 } // namespace webrtc | 366 } // namespace webrtc |
OLD | NEW |