OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/audio/sounds/sounds_manager.h" | 5 #include "media/audio/sounds/sounds_manager.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "media/audio/audio_manager.h" | 13 #include "media/audio/audio_manager.h" |
13 #include "media/audio/sounds/audio_stream_handler.h" | 14 #include "media/audio/sounds/audio_stream_handler.h" |
14 | 15 |
15 namespace media { | 16 namespace media { |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 122 |
122 // static | 123 // static |
123 void SoundsManager::InitializeForTesting(SoundsManager* manager) { | 124 void SoundsManager::InitializeForTesting(SoundsManager* manager) { |
124 CHECK(!g_instance) << "SoundsManager is already initialized."; | 125 CHECK(!g_instance) << "SoundsManager is already initialized."; |
125 CHECK(manager); | 126 CHECK(manager); |
126 g_instance = manager; | 127 g_instance = manager; |
127 g_initialized_for_testing = true; | 128 g_initialized_for_testing = true; |
128 } | 129 } |
129 | 130 |
130 } // namespace media | 131 } // namespace media |
OLD | NEW |