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

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: address comments from henrika 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
Index: media/audio/audio_manager.h
===================================================================
--- media/audio/audio_manager.h (revision 110695)
+++ 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();

Powered by Google App Engine
This is Rietveld 408576698