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

Unified Diff: media/audio/audio_manager.h

Issue 8558022: Expose a way for unit tests to terminate the AudioManager singleton to avoid conflicts between te... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase + comments addressed Created 9 years, 1 month 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
« no previous file with comments | « content/renderer/media/webrtc_audio_device_unittest.cc ('k') | media/audio/audio_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.h
===================================================================
--- media/audio/audio_manager.h (revision 111338)
+++ media/audio/audio_manager.h (working copy)
@@ -120,7 +120,11 @@
virtual void Cleanup() = 0;
private:
+ // Allow unit tests to delete and recreate the singleton.
+ friend class AutoAudioManagerCleanup;
static void Destroy(void*);
+ static bool SingletonExists();
+ static void Resurrect();
// Called by GetAudioManager() to create platform-specific audio manager.
static AudioManager* CreateAudioManager();
« no previous file with comments | « content/renderer/media/webrtc_audio_device_unittest.cc ('k') | media/audio/audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698