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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 | 168 |
169 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { | 169 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { |
170 return false; | 170 return false; |
171 } | 171 } |
172 | 172 |
173 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { | 173 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { |
174 return false; | 174 return false; |
175 } | 175 } |
176 | 176 |
| 177 virtual std::string GetMediaDeviceIDSalt() OVERRIDE { |
| 178 return ""; |
| 179 } |
| 180 |
177 private: | 181 private: |
178 net::URLRequestContext* test_request_context_; | 182 net::URLRequestContext* test_request_context_; |
179 | 183 |
180 DISALLOW_COPY_AND_ASSIGN(MockRTCResourceContext); | 184 DISALLOW_COPY_AND_ASSIGN(MockRTCResourceContext); |
181 }; | 185 }; |
182 | 186 |
183 ACTION_P(QuitMessageLoop, loop_or_proxy) { | 187 ACTION_P(QuitMessageLoop, loop_or_proxy) { |
184 loop_or_proxy->PostTask(FROM_HERE, base::MessageLoop::QuitClosure()); | 188 loop_or_proxy->PostTask(FROM_HERE, base::MessageLoop::QuitClosure()); |
185 } | 189 } |
186 | 190 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { | 445 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { |
442 return network_->ReceivedRTPPacket(channel, data, len); | 446 return network_->ReceivedRTPPacket(channel, data, len); |
443 } | 447 } |
444 | 448 |
445 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, | 449 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, |
446 int len) { | 450 int len) { |
447 return network_->ReceivedRTCPPacket(channel, data, len); | 451 return network_->ReceivedRTCPPacket(channel, data, len); |
448 } | 452 } |
449 | 453 |
450 } // namespace content | 454 } // namespace content |
OLD | NEW |