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())); |
} |