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

Unified Diff: components/test_runner/mock_web_midi_accessor.cc

Issue 2404443002: Web MIDI: use midi_service.mojom for media::midi::Result (Closed)
Patch Set: fix layout test Created 4 years, 2 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
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..4d31dd77f0a0bf29b8a3518f4fd8f4242158d06c 100644
--- a/components/test_runner/mock_web_midi_accessor.cc
+++ b/components/test_runner/mock_web_midi_accessor.cc
@@ -42,8 +42,8 @@ void MockWebMIDIAccessor::startSession() {
interfaces_->GetTestRunner()->midiAccessorResult()));
}
-void MockWebMIDIAccessor::ReportStartedSession(bool success) {
- client_->didStartSession(success, "InvalidStateError", "");
+void MockWebMIDIAccessor::ReportStartedSession(media::midi::Result result) {
+ client_->didStartSession(result);
}
void MockWebMIDIAccessor::sendMIDIData(unsigned port_index,

Powered by Google App Engine
This is Rietveld 408576698