| Index: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.cpp
|
| diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.cpp b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.cpp
|
| index d00a98355d14f62849ae4b67b992ce432c384081..b1f18518c84e37dcb830447b461ab1dfa8a86009 100644
|
| --- a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.cpp
|
| +++ b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.cpp
|
| @@ -45,17 +45,12 @@ MockWebMIDIAccessor::~MockWebMIDIAccessor()
|
| {
|
| }
|
|
|
| -void MockWebMIDIAccessor::requestAccess(bool requestSysex)
|
| +void MockWebMIDIAccessor::startSession()
|
| {
|
| - // Allows us to test both the success and error case.
|
| - if (requestSysex) {
|
| - m_client->didBlockAccess();
|
| - } else {
|
| - // Add a mock input and output port.
|
| - m_client->didAddInputPort("MockInputID", "MockInputManufacturer", "MockInputName", "MockInputVersion");
|
| - m_client->didAddOutputPort("MockOutputID", "MockOutputManufacturer", "MockOutputName", "MockOutputVersion");
|
| - m_client->didAllowAccess();
|
| - }
|
| + // Add a mock input and output port.
|
| + m_client->didAddInputPort("MockInputID", "MockInputManufacturer", "MockInputName", "MockInputVersion");
|
| + m_client->didAddOutputPort("MockOutputID", "MockOutputManufacturer", "MockOutputName", "MockOutputVersion");
|
| + m_client->didStartSession();
|
| }
|
|
|
| } // namespace WebTestRunner
|
|
|