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

Unified Diff: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.cpp

Issue 18260005: Web MIDI: remove old platform API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@midi_permission_request
Patch Set: (rebase) Created 7 years, 5 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: 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
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.h ('k') | public/platform/WebMIDIAccessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698