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

Side by Side Diff: media/midi/midi_manager_mac_unittest.cc

Issue 1086073004: Web MIDI: namespace change from media to media::midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@null
Patch Set: (rebase) Created 5 years, 7 months 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 unified diff | Download patch
« no previous file with comments | « media/midi/midi_manager_mac.cc ('k') | media/midi/midi_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace media { 16 namespace media {
17 namespace midi {
17 18
18 namespace { 19 namespace {
19 20
20 void Noop(const MIDIPacketList*, void*, void*) {} 21 void Noop(const MIDIPacketList*, void*, void*) {}
21 22
22 class FakeMidiManagerClient : public MidiManagerClient { 23 class FakeMidiManagerClient : public MidiManagerClient {
23 public: 24 public:
24 FakeMidiManagerClient() 25 FakeMidiManagerClient()
25 : result_(MIDI_NOT_SUPPORTED), 26 : result_(MIDI_NOT_SUPPORTED),
26 wait_for_result_(true), 27 wait_for_result_(true),
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 151
151 EndSession(client.get()); 152 EndSession(client.get());
152 if (ep) 153 if (ep)
153 MIDIEndpointDispose(ep); 154 MIDIEndpointDispose(ep);
154 if (midi_client) 155 if (midi_client)
155 MIDIClientDispose(midi_client); 156 MIDIClientDispose(midi_client);
156 } 157 }
157 158
158 } // namespace 159 } // namespace
159 160
161 } // namespace midi
160 } // namespace media 162 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_manager_mac.cc ('k') | media/midi/midi_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698