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

Unified Diff: components/test_runner/mock_web_midi_accessor.h

Issue 2487113002: Web MIDI: fix a regression of r430234 (Closed)
Patch Set: fix a bug that was discussed offline Created 4 years, 1 month 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: components/test_runner/mock_web_midi_accessor.h
diff --git a/components/test_runner/mock_web_midi_accessor.h b/components/test_runner/mock_web_midi_accessor.h
index 150ea54d2df4bbf6edc0c7d3af9f13fe105287d9..fc114c538a7185fa317af194801e271789b60870 100644
--- a/components/test_runner/mock_web_midi_accessor.h
+++ b/components/test_runner/mock_web_midi_accessor.h
@@ -22,8 +22,8 @@ class TestInterfaces;
class MockWebMIDIAccessor : public blink::WebMIDIAccessor {
public:
- explicit MockWebMIDIAccessor(blink::WebMIDIAccessorClient* client,
- TestInterfaces* interfaces);
+ MockWebMIDIAccessor(blink::WebMIDIAccessorClient* client,
+ TestInterfaces* interfaces);
~MockWebMIDIAccessor() override;
// blink::WebMIDIAccessor implementation.
@@ -34,10 +34,14 @@ class MockWebMIDIAccessor : public blink::WebMIDIAccessor {
double timestamp) override;
private:
- void ReportStartedSession(midi::mojom::Result result);
+ void addInputPort(midi::mojom::PortState state);
+ void addOutputPort(midi::mojom::PortState state);
+ void reportStartedSession(midi::mojom::Result result);
blink::WebMIDIAccessorClient* client_;
TestInterfaces* interfaces_;
+ unsigned next_input_port_index_;
+ unsigned next_output_port_index_;
base::WeakPtrFactory<MockWebMIDIAccessor> weak_factory_;
« no previous file with comments | « no previous file | components/test_runner/mock_web_midi_accessor.cc » ('j') | components/test_runner/mock_web_midi_accessor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698