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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/system_monitor/system_monitor.h" | 15 #include "base/system_monitor/system_monitor.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace media { | 18 namespace media { |
| 19 namespace midi { |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 class FakeMidiManager : public MidiManager { | 23 class FakeMidiManager : public MidiManager { |
23 public: | 24 public: |
24 FakeMidiManager() : start_initialization_is_called_(false) {} | 25 FakeMidiManager() : start_initialization_is_called_(false) {} |
25 ~FakeMidiManager() override {} | 26 ~FakeMidiManager() override {} |
26 | 27 |
27 // MidiManager implementation. | 28 // MidiManager implementation. |
28 void StartInitialization() override { | 29 void StartInitialization() override { |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 #elif defined(USE_ALSA) | 265 #elif defined(USE_ALSA) |
265 // Temporary until http://crbug.com/371230 is resolved. | 266 // Temporary until http://crbug.com/371230 is resolved. |
266 EXPECT_TRUE((result == MIDI_OK) || (result == MIDI_INITIALIZATION_ERROR)); | 267 EXPECT_TRUE((result == MIDI_OK) || (result == MIDI_INITIALIZATION_ERROR)); |
267 #else | 268 #else |
268 EXPECT_EQ(MIDI_OK, result); | 269 EXPECT_EQ(MIDI_OK, result); |
269 #endif | 270 #endif |
270 } | 271 } |
271 | 272 |
272 } // namespace | 273 } // namespace |
273 | 274 |
| 275 } // namespace midi |
274 } // namespace media | 276 } // namespace media |
OLD | NEW |