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

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

Issue 661323002: Web MIDI: use new Blink APIs to be free from depracated ones (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #3 Created 6 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: 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 c1300193965f6248964a178dde4daf53a7d3e3d7..28ac74f89f858baaba978760d124a2acfc2b4a0e 100644
--- a/content/shell/renderer/test_runner/mock_web_midi_accessor.cc
+++ b/content/shell/renderer/test_runner/mock_web_midi_accessor.cc
@@ -46,14 +46,17 @@ MockWebMIDIAccessor::~MockWebMIDIAccessor() {
void MockWebMIDIAccessor::startSession() {
// Add a mock input and output port.
+ const bool active = true;
client_->didAddInputPort("MockInputID",
"MockInputManufacturer",
"MockInputName",
- "MockInputVersion");
+ "MockInputVersion",
+ active);
client_->didAddOutputPort("MockOutputID",
"MockOutputManufacturer",
"MockOutputName",
- "MockOutputVersion");
+ "MockOutputVersion",
+ active);
interfaces_->GetDelegate()->PostTask(new DidStartSessionTask(
this, client_, interfaces_->GetTestRunner()->midiAccessorResult()));
}

Powered by Google App Engine
This is Rietveld 408576698