| OLD | NEW |
| 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 28 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace WebTestRunner { | 41 namespace WebTestRunner { |
| 42 | 42 |
| 43 class MockWebMIDIAccessor : public WebKit::WebMIDIAccessor { | 43 class MockWebMIDIAccessor : public WebKit::WebMIDIAccessor { |
| 44 public: | 44 public: |
| 45 explicit MockWebMIDIAccessor(WebKit::WebMIDIAccessorClient*); | 45 explicit MockWebMIDIAccessor(WebKit::WebMIDIAccessorClient*); |
| 46 virtual ~MockWebMIDIAccessor(); | 46 virtual ~MockWebMIDIAccessor(); |
| 47 | 47 |
| 48 // WebKit::WebMIDIAccessor implementation. | 48 // WebKit::WebMIDIAccessor implementation. |
| 49 virtual void requestAccess(bool requestSysex) OVERRIDE; | 49 virtual void startSession() OVERRIDE; |
| 50 virtual void sendMIDIData( | 50 virtual void sendMIDIData( |
| 51 unsigned portIndex, | 51 unsigned portIndex, |
| 52 const unsigned char* data, | 52 const unsigned char* data, |
| 53 size_t length, | 53 size_t length, |
| 54 double timestamp) OVERRIDE { } | 54 double timestamp) OVERRIDE { } |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 WebKit::WebMIDIAccessorClient* m_client; | 57 WebKit::WebMIDIAccessorClient* m_client; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace WebTestRunner | 60 } // namespace WebTestRunner |
| 61 | 61 |
| 62 #endif // MockWebMIDIAccessor_h | 62 #endif // MockWebMIDIAccessor_h |
| OLD | NEW |