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

Unified Diff: webrtc/modules/audio_device/audio_device_unittest.cc

Issue 3010223002: Update thread annotiation macros in modules to use RTC_ prefix (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_device/audio_device_unittest.cc
diff --git a/webrtc/modules/audio_device/audio_device_unittest.cc b/webrtc/modules/audio_device/audio_device_unittest.cc
index c65f139192f9d0018bc05c3fe18f54cc9eec78cb..24db9ae8e59db55a9f5a42cfd41cfbd979eaee63 100644
--- a/webrtc/modules/audio_device/audio_device_unittest.cc
+++ b/webrtc/modules/audio_device/audio_device_unittest.cc
@@ -173,10 +173,10 @@ class FifoAudioStream : public AudioStream {
rtc::CriticalSection lock_;
rtc::RaceChecker race_checker_;
- std::list<Buffer16> fifo_ GUARDED_BY(lock_);
- size_t write_count_ GUARDED_BY(race_checker_) = 0;
- size_t max_size_ GUARDED_BY(race_checker_) = 0;
- size_t written_elements_ GUARDED_BY(race_checker_) = 0;
+ std::list<Buffer16> fifo_ RTC_GUARDED_BY(lock_);
+ size_t write_count_ RTC_GUARDED_BY(race_checker_) = 0;
+ size_t max_size_ RTC_GUARDED_BY(race_checker_) = 0;
+ size_t written_elements_ RTC_GUARDED_BY(race_checker_) = 0;
};
// Inserts periodic impulses and measures the latency between the time of
@@ -293,10 +293,10 @@ class LatencyAudioStream : public AudioStream {
rtc::ThreadChecker read_thread_checker_;
rtc::ThreadChecker write_thread_checker_;
- rtc::Optional<int64_t> pulse_time_ GUARDED_BY(lock_);
- std::vector<int> latencies_ GUARDED_BY(race_checker_);
- size_t read_count_ ACCESS_ON(read_thread_checker_) = 0;
- size_t write_count_ ACCESS_ON(write_thread_checker_) = 0;
+ rtc::Optional<int64_t> pulse_time_ RTC_GUARDED_BY(lock_);
+ std::vector<int> latencies_ RTC_GUARDED_BY(race_checker_);
+ size_t read_count_ RTC_ACCESS_ON(read_thread_checker_) = 0;
+ size_t write_count_ RTC_ACCESS_ON(write_thread_checker_) = 0;
};
// Mocks the AudioTransport object and proxies actions for the two callbacks
« no previous file with comments | « webrtc/modules/audio_device/audio_device_buffer.h ('k') | webrtc/modules/audio_device/ios/audio_device_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698