Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / shell / renderer / test_runner / mock_web_midi_accessor.cc
index 4e6b40b..6962ea4 100644 (file)
@@ -23,7 +23,7 @@ class DidStartSessionTask : public WebMethodTask<MockWebMIDIAccessor> {
         client_(client),
         result_(result) {}
 
-  virtual void RunIfValid() OVERRIDE {
+  void RunIfValid() override {
     client_->didStartSession(result_, "InvalidStateError", "");
   }
 
@@ -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()));
 }