| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 25 matching lines...) Expand all Loading... |
| 36 #include "public/platform/WebNonCopyable.h" | 36 #include "public/platform/WebNonCopyable.h" |
| 37 #include "public/platform/WebString.h" | 37 #include "public/platform/WebString.h" |
| 38 #include "public/platform/WebURL.h" | 38 #include "public/platform/WebURL.h" |
| 39 #include "public/testing/WebTask.h" | 39 #include "public/testing/WebTask.h" |
| 40 #include "public/web/WebUserMediaClient.h" | 40 #include "public/web/WebUserMediaClient.h" |
| 41 | 41 |
| 42 namespace WebTestRunner { | 42 namespace WebTestRunner { |
| 43 | 43 |
| 44 class WebTestDelegate; | 44 class WebTestDelegate; |
| 45 | 45 |
| 46 class WebUserMediaClientMock : public WebKit::WebUserMediaClient, public WebKit:
:WebNonCopyable { | 46 class WebUserMediaClientMock : public blink::WebUserMediaClient, public blink::W
ebNonCopyable { |
| 47 public: | 47 public: |
| 48 explicit WebUserMediaClientMock(WebTestDelegate*); | 48 explicit WebUserMediaClientMock(WebTestDelegate*); |
| 49 ~WebUserMediaClientMock() { } | 49 ~WebUserMediaClientMock() { } |
| 50 | 50 |
| 51 virtual void requestUserMedia(const WebKit::WebUserMediaRequest&) OVERRIDE; | 51 virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE; |
| 52 virtual void cancelUserMediaRequest(const WebKit::WebUserMediaRequest&) OVER
RIDE; | 52 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&) OVERR
IDE; |
| 53 | 53 |
| 54 // Task related methods | 54 // Task related methods |
| 55 WebTaskList* taskList() { return &m_taskList; } | 55 WebTaskList* taskList() { return &m_taskList; } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 WebTaskList m_taskList; | 58 WebTaskList m_taskList; |
| 59 WebTestDelegate* m_delegate; | 59 WebTestDelegate* m_delegate; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } | 62 } |
| 63 | 63 |
| 64 #endif // WebUserMediaClientMock_h | 64 #endif // WebUserMediaClientMock_h |
| OLD | NEW |