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

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

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 | Annotate | Revision Log
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 MockWebMIDIAccessor_h
6 #define MockWebMIDIAccessor_h
7
8 #include "content/shell/renderer/test_runner/TestCommon.h"
9 #include "content/shell/renderer/test_runner/WebTask.h"
10 #include "third_party/WebKit/public/platform/WebMIDIAccessor.h"
11 #include "third_party/WebKit/public/platform/WebNonCopyable.h"
12
13 namespace blink {
14 class WebMIDIAccessorClient;
15 }
16
17 namespace WebTestRunner {
18
19 class TestInterfaces;
20
21 class MockWebMIDIAccessor : public blink::WebMIDIAccessor, public blink::WebNonC opyable {
22 public:
23 explicit MockWebMIDIAccessor(blink::WebMIDIAccessorClient*, TestInterfaces*) ;
24 virtual ~MockWebMIDIAccessor();
25
26 // blink::WebMIDIAccessor implementation.
27 virtual void startSession() OVERRIDE;
28 virtual void sendMIDIData(
29 unsigned portIndex,
30 const unsigned char* data,
31 size_t length,
32 double timestamp) OVERRIDE { }
33
34 // WebTask related methods
35 WebTaskList* taskList() { return &m_taskList; }
36
37 private:
38 blink::WebMIDIAccessorClient* m_client;
39 WebTaskList m_taskList;
40 TestInterfaces* m_interfaces;
41 };
42
43 } // namespace WebTestRunner
44
45 #endif // MockWebMIDIAccessor_h
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/MockWebAudioDevice.cpp ('k') | content/shell/renderer/test_runner/MockWebMIDIAccessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698