Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: webrtc/call/bitrate_estimator_tests.cc

Issue 3012853002: Update thread annotiation macros to use RTC_ prefix (Closed)
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/call/bitrate_allocator.h ('k') | webrtc/call/call.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/call/bitrate_allocator.h ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698