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

Unified Diff: media/audio/audio_streams_tracker.h

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Add missing EXPECT_TRUE. Created 4 years 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: media/audio/audio_streams_tracker.h
diff --git a/media/audio/audio_streams_tracker.h b/media/audio/audio_streams_tracker.h
index 1071fd717f363af9467e5c5732df6276f876bc96..9b8b1b33eb2e3e028e33fcc2b4121d59776f51f7 100644
--- a/media/audio/audio_streams_tracker.h
+++ b/media/audio/audio_streams_tracker.h
@@ -29,6 +29,9 @@ class MEDIA_EXPORT AudioStreamsTracker {
// Resets the max stream count, i.e. sets it to the current stream count.
void ResetMaxStreamCount();
+ // Useful for resetting this between tests with different threading.
+ void DetachFromThreadForTesting();
+
size_t max_stream_count() const;
private:

Powered by Google App Engine
This is Rietveld 408576698