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