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

Side by Side Diff: content/test/webrtc_audio_device_test.cc

Issue 10830072: Browser Plugin: New Implementation (Renderer Side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added lots more comments to messages and public members of BrowserPlugin Created 8 years, 4 months 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 // 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
55 // RenderProcess implementation. 55 // RenderProcess implementation.
56 virtual skia::PlatformCanvas* GetDrawingCanvas( 56 virtual skia::PlatformCanvas* GetDrawingCanvas(
57 TransportDIB** memory, const gfx::Rect& rect) OVERRIDE { 57 TransportDIB** memory, const gfx::Rect& rect) OVERRIDE {
58 return NULL; 58 return NULL;
59 } 59 }
60 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE {} 60 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE {}
61 virtual bool UseInProcessPlugins() const OVERRIDE { return false; } 61 virtual bool UseInProcessPlugins() const OVERRIDE { return false; }
62 virtual void AddBindings(int bindings) OVERRIDE {} 62 virtual void AddBindings(int bindings) OVERRIDE {}
63 virtual int GetEnabledBindings() const { return 0; } 63 virtual int GetEnabledBindings() const { return 0; }
64 virtual bool HasInitializedMediaLibrary() const { return false; } 64 virtual bool HasInitializedMediaLibrary() const { return false; }
65 virtual TransportDIB* CreateTransportDIB(size_t size) { return NULL; }
66 virtual void FreeTransportDIB(TransportDIB*) {}
65 67
66 private: 68 private:
67 DISALLOW_COPY_AND_ASSIGN(WebRTCMockRenderProcess); 69 DISALLOW_COPY_AND_ASSIGN(WebRTCMockRenderProcess);
68 }; 70 };
69 71
70 // Utility scoped class to replace the global content client's renderer for the 72 // Utility scoped class to replace the global content client's renderer for the
71 // duration of the test. 73 // duration of the test.
72 class ReplaceContentClientRenderer { 74 class ReplaceContentClientRenderer {
73 public: 75 public:
74 explicit ReplaceContentClientRenderer( 76 explicit ReplaceContentClientRenderer(
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 WebRTCTransportImpl::~WebRTCTransportImpl() {} 370 WebRTCTransportImpl::~WebRTCTransportImpl() {}
369 371
370 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { 372 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) {
371 return network_->ReceivedRTPPacket(channel, data, len); 373 return network_->ReceivedRTPPacket(channel, data, len);
372 } 374 }
373 375
374 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, 376 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data,
375 int len) { 377 int len) {
376 return network_->ReceivedRTCPPacket(channel, data, len); 378 return network_->ReceivedRTCPPacket(channel, data, len);
377 } 379 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698