| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/midi/midi_manager.h" | 5 #include "media/midi/midi_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <vector> | 10 #include <vector> |
| 8 | 11 |
| 9 #include "base/bind.h" | 12 #include "base/bind.h" |
| 10 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 13 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 15 #include "base/system_monitor/system_monitor.h" | 19 #include "base/system_monitor/system_monitor.h" |
| 20 #include "build/build_config.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 22 |
| 18 namespace media { | 23 namespace media { |
| 19 namespace midi { | 24 namespace midi { |
| 20 | 25 |
| 21 namespace { | 26 namespace { |
| 22 | 27 |
| 23 class FakeMidiManager : public MidiManager { | 28 class FakeMidiManager : public MidiManager { |
| 24 public: | 29 public: |
| 25 FakeMidiManager() | 30 FakeMidiManager() |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 run_loop.RunUntilIdle(); | 291 run_loop.RunUntilIdle(); |
| 287 } | 292 } |
| 288 | 293 |
| 289 // TODO(toyoshim): Add multi-threaded unit tests to check races around | 294 // TODO(toyoshim): Add multi-threaded unit tests to check races around |
| 290 // StartInitialization(), CompleteInitialization(), and Finalize(). | 295 // StartInitialization(), CompleteInitialization(), and Finalize(). |
| 291 | 296 |
| 292 } // namespace | 297 } // namespace |
| 293 | 298 |
| 294 } // namespace midi | 299 } // namespace midi |
| 295 } // namespace media | 300 } // namespace media |
| OLD | NEW |