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

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: yhirano@ review 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..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,

Powered by Google App Engine
This is Rietveld 408576698