| 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 <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "webrtc/test/gtest.h" | |
| 16 | |
| 17 #include "webrtc/api/call/audio_state.h" | 15 #include "webrtc/api/call/audio_state.h" |
| 18 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
| 19 #include "webrtc/base/event.h" | 17 #include "webrtc/base/event.h" |
| 20 #include "webrtc/base/logging.h" | 18 #include "webrtc/base/logging.h" |
| 21 #include "webrtc/base/thread_annotations.h" | 19 #include "webrtc/base/thread_annotations.h" |
| 22 #include "webrtc/call.h" | 20 #include "webrtc/call.h" |
| 23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 21 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
| 24 #include "webrtc/system_wrappers/include/trace.h" | 22 #include "webrtc/system_wrappers/include/trace.h" |
| 25 #include "webrtc/test/call_test.h" | 23 #include "webrtc/test/call_test.h" |
| 26 #include "webrtc/test/direct_transport.h" | 24 #include "webrtc/test/direct_transport.h" |
| 27 #include "webrtc/test/encoder_settings.h" | 25 #include "webrtc/test/encoder_settings.h" |
| 28 #include "webrtc/test/fake_decoder.h" | 26 #include "webrtc/test/fake_decoder.h" |
| 29 #include "webrtc/test/fake_encoder.h" | 27 #include "webrtc/test/fake_encoder.h" |
| 28 #include "webrtc/test/frame_generator_capturer.h" |
| 29 #include "webrtc/test/gtest.h" |
| 30 #include "webrtc/test/mock_voice_engine.h" | 30 #include "webrtc/test/mock_voice_engine.h" |
| 31 #include "webrtc/test/frame_generator_capturer.h" | |
| 32 | 31 |
| 33 namespace webrtc { | 32 namespace webrtc { |
| 34 namespace { | 33 namespace { |
| 35 // Note: If you consider to re-use this class, think twice and instead consider | 34 // Note: If you consider to re-use this class, think twice and instead consider |
| 36 // writing tests that don't depend on the logging system. | 35 // writing tests that don't depend on the logging system. |
| 37 class LogObserver { | 36 class LogObserver { |
| 38 public: | 37 public: |
| 39 LogObserver() { rtc::LogMessage::AddLogToStream(&callback_, rtc::LS_INFO); } | 38 LogObserver() { rtc::LogMessage::AddLogToStream(&callback_, rtc::LS_INFO); } |
| 40 | 39 |
| 41 ~LogObserver() { rtc::LogMessage::RemoveLogToStream(&callback_); } | 40 ~LogObserver() { rtc::LogMessage::RemoveLogToStream(&callback_); } |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId); | 324 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId); |
| 326 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); | 325 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); |
| 327 receiver_log_.PushExpectedLogLine( | 326 receiver_log_.PushExpectedLogLine( |
| 328 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); | 327 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); |
| 329 streams_.push_back(new Stream(this, false)); | 328 streams_.push_back(new Stream(this, false)); |
| 330 streams_[0]->StopSending(); | 329 streams_[0]->StopSending(); |
| 331 streams_[1]->StopSending(); | 330 streams_[1]->StopSending(); |
| 332 EXPECT_TRUE(receiver_log_.Wait()); | 331 EXPECT_TRUE(receiver_log_.Wait()); |
| 333 } | 332 } |
| 334 } // namespace webrtc | 333 } // namespace webrtc |
| OLD | NEW |