OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/test/webrtc_audio_device_test.h" | 5 #include "content/test/webrtc_audio_device_test.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual ~WebRTCMockRenderProcess() {} | 55 virtual ~WebRTCMockRenderProcess() {} |
56 | 56 |
57 // RenderProcess implementation. | 57 // RenderProcess implementation. |
58 virtual skia::PlatformCanvas* GetDrawingCanvas( | 58 virtual skia::PlatformCanvas* GetDrawingCanvas( |
59 TransportDIB** memory, const gfx::Rect& rect) OVERRIDE { | 59 TransportDIB** memory, const gfx::Rect& rect) OVERRIDE { |
60 return NULL; | 60 return NULL; |
61 } | 61 } |
62 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE {} | 62 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE {} |
63 virtual bool UseInProcessPlugins() const OVERRIDE { return false; } | 63 virtual bool UseInProcessPlugins() const OVERRIDE { return false; } |
64 virtual void AddBindings(int bindings) OVERRIDE {} | 64 virtual void AddBindings(int bindings) OVERRIDE {} |
65 virtual int GetEnabledBindings() const { return 0; } | 65 virtual int GetEnabledBindings() const OVERRIDE { return 0; } |
66 virtual TransportDIB* CreateTransportDIB(size_t size) { return NULL; } | 66 virtual TransportDIB* CreateTransportDIB(size_t size) OVERRIDE { |
67 virtual void FreeTransportDIB(TransportDIB*) {} | 67 return NULL; |
| 68 } |
| 69 virtual void FreeTransportDIB(TransportDIB*) OVERRIDE {} |
68 | 70 |
69 private: | 71 private: |
70 DISALLOW_COPY_AND_ASSIGN(WebRTCMockRenderProcess); | 72 DISALLOW_COPY_AND_ASSIGN(WebRTCMockRenderProcess); |
71 }; | 73 }; |
72 | 74 |
73 // Utility scoped class to replace the global content client's renderer for the | 75 // Utility scoped class to replace the global content client's renderer for the |
74 // duration of the test. | 76 // duration of the test. |
75 class ReplaceContentClientRenderer { | 77 class ReplaceContentClientRenderer { |
76 public: | 78 public: |
77 explicit ReplaceContentClientRenderer(ContentRendererClient* new_renderer) { | 79 explicit ReplaceContentClientRenderer(ContentRendererClient* new_renderer) { |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { | 359 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { |
358 return network_->ReceivedRTPPacket(channel, data, len); | 360 return network_->ReceivedRTPPacket(channel, data, len); |
359 } | 361 } |
360 | 362 |
361 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, | 363 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, |
362 int len) { | 364 int len) { |
363 return network_->ReceivedRTCPPacket(channel, data, len); | 365 return network_->ReceivedRTCPPacket(channel, data, len); |
364 } | 366 } |
365 | 367 |
366 } // namespace content | 368 } // namespace content |
OLD | NEW |