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

Unified Diff: content/shell/renderer/test_runner/mock_web_midi_accessor.cc

Issue 945263002: Web MIDI: chromium-side blink API update to support MIDIPortState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notify_to_blink
Patch Set: review #3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/midi_message_filter_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/mock_web_midi_accessor.cc
diff --git a/content/shell/renderer/test_runner/mock_web_midi_accessor.cc b/content/shell/renderer/test_runner/mock_web_midi_accessor.cc
index 6962ea4ecaa880fead72cc56c025c553781f03ab..2548af27dac41bdd8fae04ccce265599f3c59991 100644
--- a/content/shell/renderer/test_runner/mock_web_midi_accessor.cc
+++ b/content/shell/renderer/test_runner/mock_web_midi_accessor.cc
@@ -46,17 +46,18 @@ MockWebMIDIAccessor::~MockWebMIDIAccessor() {
void MockWebMIDIAccessor::startSession() {
// Add a mock input and output port.
- const bool active = true;
+ blink::WebMIDIAccessorClient::MIDIPortState state =
+ blink::WebMIDIAccessorClient::MIDIPortStateConnected;
client_->didAddInputPort("MockInputID",
"MockInputManufacturer",
"MockInputName",
"MockInputVersion",
- active);
+ state);
client_->didAddOutputPort("MockOutputID",
"MockOutputManufacturer",
"MockOutputName",
"MockOutputVersion",
- active);
+ state);
interfaces_->GetDelegate()->PostTask(new DidStartSessionTask(
this, client_, interfaces_->GetTestRunner()->midiAccessorResult()));
}
« no previous file with comments | « content/renderer/media/midi_message_filter_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698