client_(client),
result_(result) {}
- virtual void RunIfValid() OVERRIDE {
+ void RunIfValid() override {
client_->didStartSession(result_, "InvalidStateError", "");
}
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()));
}