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

Side by Side Diff: media/midi/midi_manager_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_unittest.cc ('k') | media/midi/midi_manager_usb.h » ('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 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
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
OLDNEW
« no previous file with comments | « media/midi/midi_manager_mac_unittest.cc ('k') | media/midi/midi_manager_usb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698