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> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 bool Wait() { return done_.Wait(test::CallTest::kDefaultTimeoutMs); } | 76 bool Wait() { return done_.Wait(test::CallTest::kDefaultTimeoutMs); } |
77 | 77 |
78 void PushExpectedLogLine(const std::string& expected_log_line) { | 78 void PushExpectedLogLine(const std::string& expected_log_line) { |
79 rtc::CritScope lock(&crit_sect_); | 79 rtc::CritScope lock(&crit_sect_); |
80 expected_log_lines_.push_back(expected_log_line); | 80 expected_log_lines_.push_back(expected_log_line); |
81 } | 81 } |
82 | 82 |
83 private: | 83 private: |
84 typedef std::list<std::string> Strings; | 84 typedef std::list<std::string> Strings; |
85 rtc::CriticalSection crit_sect_; | 85 rtc::CriticalSection crit_sect_; |
86 Strings received_log_lines_ GUARDED_BY(crit_sect_); | 86 Strings received_log_lines_ RTC_GUARDED_BY(crit_sect_); |
87 Strings expected_log_lines_ GUARDED_BY(crit_sect_); | 87 Strings expected_log_lines_ RTC_GUARDED_BY(crit_sect_); |
88 rtc::Event done_; | 88 rtc::Event done_; |
89 }; | 89 }; |
90 | 90 |
91 Callback callback_; | 91 Callback callback_; |
92 }; | 92 }; |
93 } // namespace | 93 } // namespace |
94 | 94 |
95 static const int kTOFExtensionId = 4; | 95 static const int kTOFExtensionId = 4; |
96 static const int kASTExtensionId = 5; | 96 static const int kASTExtensionId = 5; |
97 | 97 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); | 315 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); |
316 receiver_log_.PushExpectedLogLine( | 316 receiver_log_.PushExpectedLogLine( |
317 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); | 317 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); |
318 streams_.push_back(new Stream(this)); | 318 streams_.push_back(new Stream(this)); |
319 streams_[0]->StopSending(); | 319 streams_[0]->StopSending(); |
320 streams_[1]->StopSending(); | 320 streams_[1]->StopSending(); |
321 }); | 321 }); |
322 EXPECT_TRUE(receiver_log_.Wait()); | 322 EXPECT_TRUE(receiver_log_.Wait()); |
323 } | 323 } |
324 } // namespace webrtc | 324 } // namespace webrtc |
OLD | NEW |