#include "content/shell/renderer/test_runner/mock_web_midi_accessor.h"
-#include "content/shell/renderer/test_runner/WebTestDelegate.h"
#include "content/shell/renderer/test_runner/test_interfaces.h"
#include "content/shell/renderer/test_runner/test_runner.h"
+#include "content/shell/renderer/test_runner/web_test_delegate.h"
#include "content/shell/renderer/test_runner/web_test_runner.h"
#include "third_party/WebKit/public/platform/WebMIDIAccessorClient.h"
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");
- interfaces_->GetDelegate()->postTask(new DidStartSessionTask(
+ "MockOutputVersion",
+ active);
+ interfaces_->GetDelegate()->PostTask(new DidStartSessionTask(
this, client_, interfaces_->GetTestRunner()->midiAccessorResult()));
}