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

Side by Side Diff: content/shell/renderer/test_runner/mock_web_midi_accessor.h

Issue 419823002: test_runner: Migrate MockWebMIDIAccessor to Chromium C++ style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_MIDI_ACCESSOR_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_MIDI_ACCESSOR_H_
7
8 #include "base/basictypes.h"
9 #include "content/shell/renderer/test_runner/TestCommon.h"
10 #include "content/shell/renderer/test_runner/WebTask.h"
11 #include "third_party/WebKit/public/platform/WebMIDIAccessor.h"
12
13 namespace blink {
14 class WebMIDIAccessorClient;
15 }
16
17 namespace content {
18
19 class TestInterfaces;
20
21 class MockWebMIDIAccessor : public blink::WebMIDIAccessor {
22 public:
23 explicit MockWebMIDIAccessor(blink::WebMIDIAccessorClient* client,
24 TestInterfaces* interfaces);
25 virtual ~MockWebMIDIAccessor();
26
27 // blink::WebMIDIAccessor implementation.
28 virtual void startSession() OVERRIDE;
29 virtual void sendMIDIData(unsigned port_index,
30 const unsigned char* data,
31 size_t length,
32 double timestamp) OVERRIDE {}
33
34 // WebTask related methods
35 WebTaskList* mutable_task_list() { return &task_list_; }
36
37 private:
38 blink::WebMIDIAccessorClient* client_;
39 WebTaskList task_list_;
40 TestInterfaces* interfaces_;
41
42 DISALLOW_COPY_AND_ASSIGN(MockWebMIDIAccessor);
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_MIDI_ACCESSOR_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebTestInterfaces.cpp ('k') | content/shell/renderer/test_runner/mock_web_midi_accessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698