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

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

Issue 662233002: Web MIDI: make MidiManagerMac notify device connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: it->second Created 5 years, 10 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_usb.cc ('k') | media/midi/midi_manager_win.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 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_usb.h" 5 #include "media/midi/midi_manager_usb.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ~FakeMidiManagerClient() override {} 79 ~FakeMidiManagerClient() override {}
80 80
81 void AddInputPort(const MidiPortInfo& info) override { 81 void AddInputPort(const MidiPortInfo& info) override {
82 input_ports_.push_back(info); 82 input_ports_.push_back(info);
83 } 83 }
84 84
85 void AddOutputPort(const MidiPortInfo& info) override { 85 void AddOutputPort(const MidiPortInfo& info) override {
86 output_ports_.push_back(info); 86 output_ports_.push_back(info);
87 } 87 }
88 88
89 void SetInputPortState(uint32 port_index, MidiPortState state) override {}
90
91 void SetOutputPortState(uint32 port_index, MidiPortState state) override {}
92
89 void CompleteStartSession(MidiResult result) override { 93 void CompleteStartSession(MidiResult result) override {
90 complete_start_session_ = true; 94 complete_start_session_ = true;
91 result_ = result; 95 result_ = result;
92 } 96 }
93 97
94 void ReceiveMidiData(uint32 port_index, 98 void ReceiveMidiData(uint32 port_index,
95 const uint8* data, 99 const uint8* data,
96 size_t size, 100 size_t size,
97 double timestamp) override { 101 double timestamp) override {
98 logger_->AddLog("MidiManagerClient::ReceiveMidiData "); 102 logger_->AddLog("MidiManagerClient::ReceiveMidiData ");
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 "data = 0x90 0x45 0x7f\n" 408 "data = 0x90 0x45 0x7f\n"
405 "MidiManagerClient::ReceiveMidiData port_index = 0 " 409 "MidiManagerClient::ReceiveMidiData port_index = 0 "
406 "data = 0xf0 0x00 0x01\n" 410 "data = 0xf0 0x00 0x01\n"
407 "MidiManagerClient::ReceiveMidiData port_index = 0 data = 0xf7\n", 411 "MidiManagerClient::ReceiveMidiData port_index = 0 data = 0xf7\n",
408 logger_.TakeLog()); 412 logger_.TakeLog());
409 } 413 }
410 414
411 } // namespace 415 } // namespace
412 416
413 } // namespace media 417 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_manager_usb.cc ('k') | media/midi/midi_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698