| Index: components/test_runner/mock_web_midi_accessor.cc
|
| diff --git a/components/test_runner/mock_web_midi_accessor.cc b/components/test_runner/mock_web_midi_accessor.cc
|
| index 45dc5310a63f75456de0d7d1f36ac788df7faf97..e14e084c9ab1e5d0a3fb59326011d4a2c9882332 100644
|
| --- a/components/test_runner/mock_web_midi_accessor.cc
|
| +++ b/components/test_runner/mock_web_midi_accessor.cc
|
| @@ -14,6 +14,8 @@
|
| #include "third_party/WebKit/public/platform/WebString.h"
|
| #include "third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h"
|
|
|
| +using midi::mojom::Result;
|
| +
|
| namespace test_runner {
|
|
|
| MockWebMIDIAccessor::MockWebMIDIAccessor(blink::WebMIDIAccessorClient* client,
|
| @@ -42,8 +44,8 @@ void MockWebMIDIAccessor::startSession() {
|
| interfaces_->GetTestRunner()->midiAccessorResult()));
|
| }
|
|
|
| -void MockWebMIDIAccessor::ReportStartedSession(bool success) {
|
| - client_->didStartSession(success, "InvalidStateError", "");
|
| +void MockWebMIDIAccessor::ReportStartedSession(Result result) {
|
| + client_->didStartSession(result);
|
| }
|
|
|
| void MockWebMIDIAccessor::sendMIDIData(unsigned port_index,
|
|
|