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

Side by Side Diff: Source/testing/runner/MockWebMIDIAccessor.h

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef MockWebMIDIAccessor_h 31 #ifndef MockWebMIDIAccessor_h
32 #define MockWebMIDIAccessor_h 32 #define MockWebMIDIAccessor_h
33 33
34 #include "TestCommon.h" 34 #include "TestCommon.h"
35 #include "public/platform/WebMIDIAccessor.h" 35 #include "public/platform/WebMIDIAccessor.h"
36 #include "public/platform/WebNonCopyable.h" 36 #include "public/platform/WebNonCopyable.h"
37 #include "public/testing/WebTask.h" 37 #include "public/testing/WebTask.h"
38 38
39 namespace WebKit { 39 namespace blink {
40 class WebMIDIAccessorClient; 40 class WebMIDIAccessorClient;
41 } 41 }
42 42
43 namespace WebTestRunner { 43 namespace WebTestRunner {
44 44
45 class TestInterfaces; 45 class TestInterfaces;
46 46
47 class MockWebMIDIAccessor : public WebKit::WebMIDIAccessor, public WebKit::WebNo nCopyable { 47 class MockWebMIDIAccessor : public blink::WebMIDIAccessor, public blink::WebNonC opyable {
48 public: 48 public:
49 explicit MockWebMIDIAccessor(WebKit::WebMIDIAccessorClient*, TestInterfaces* ); 49 explicit MockWebMIDIAccessor(blink::WebMIDIAccessorClient*, TestInterfaces*) ;
50 virtual ~MockWebMIDIAccessor(); 50 virtual ~MockWebMIDIAccessor();
51 51
52 // WebKit::WebMIDIAccessor implementation. 52 // blink::WebMIDIAccessor implementation.
53 virtual void startSession() OVERRIDE; 53 virtual void startSession() OVERRIDE;
54 virtual void sendMIDIData( 54 virtual void sendMIDIData(
55 unsigned portIndex, 55 unsigned portIndex,
56 const unsigned char* data, 56 const unsigned char* data,
57 size_t length, 57 size_t length,
58 double timestamp) OVERRIDE { } 58 double timestamp) OVERRIDE { }
59 59
60 // WebTask related methods 60 // WebTask related methods
61 WebTaskList* taskList() { return &m_taskList; } 61 WebTaskList* taskList() { return &m_taskList; }
62 62
63 private: 63 private:
64 WebKit::WebMIDIAccessorClient* m_client; 64 blink::WebMIDIAccessorClient* m_client;
65 WebTaskList m_taskList; 65 WebTaskList m_taskList;
66 TestInterfaces* m_interfaces; 66 TestInterfaces* m_interfaces;
67 }; 67 };
68 68
69 } // namespace WebTestRunner 69 } // namespace WebTestRunner
70 70
71 #endif // MockWebMIDIAccessor_h 71 #endif // MockWebMIDIAccessor_h
OLDNEW
« no previous file with comments | « Source/testing/runner/MockWebAudioDevice.cpp ('k') | Source/testing/runner/MockWebMIDIAccessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698