OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_mac.h" | 5 #include "media/midi/midi_manager_mac.h" |
6 | 6 |
7 #include <CoreMIDI/MIDIServices.h> | 7 #include <CoreMIDI/MIDIServices.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace media { | |
21 namespace midi { | 20 namespace midi { |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
25 void Noop(const MIDIPacketList*, void*, void*) {} | 24 void Noop(const MIDIPacketList*, void*, void*) {} |
26 | 25 |
27 class FakeMidiManagerClient : public MidiManagerClient { | 26 class FakeMidiManagerClient : public MidiManagerClient { |
28 public: | 27 public: |
29 FakeMidiManagerClient() | 28 FakeMidiManagerClient() |
30 : result_(Result::NOT_SUPPORTED), | 29 : result_(Result::NOT_SUPPORTED), |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 EndSession(client.get()); | 163 EndSession(client.get()); |
165 if (ep) | 164 if (ep) |
166 MIDIEndpointDispose(ep); | 165 MIDIEndpointDispose(ep); |
167 if (midi_client) | 166 if (midi_client) |
168 MIDIClientDispose(midi_client); | 167 MIDIClientDispose(midi_client); |
169 } | 168 } |
170 | 169 |
171 } // namespace | 170 } // namespace |
172 | 171 |
173 } // namespace midi | 172 } // namespace midi |
174 } // namespace media | |
OLD | NEW |