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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } | 423 } |
424 } | 424 } |
425 | 425 |
426 std::string MAYBE_WebRTCAudioDeviceTest::GetTestDataPath( | 426 std::string MAYBE_WebRTCAudioDeviceTest::GetTestDataPath( |
427 const base::FilePath::StringType& file_name) { | 427 const base::FilePath::StringType& file_name) { |
428 base::FilePath path; | 428 base::FilePath path; |
429 EXPECT_TRUE(PathService::Get(DIR_TEST_DATA, &path)); | 429 EXPECT_TRUE(PathService::Get(DIR_TEST_DATA, &path)); |
430 path = path.Append(file_name); | 430 path = path.Append(file_name); |
431 EXPECT_TRUE(base::PathExists(path)); | 431 EXPECT_TRUE(base::PathExists(path)); |
432 #if defined(OS_WIN) | 432 #if defined(OS_WIN) |
433 return WideToUTF8(path.value()); | 433 return base::WideToUTF8(path.value()); |
434 #else | 434 #else |
435 return path.value(); | 435 return path.value(); |
436 #endif | 436 #endif |
437 } | 437 } |
438 | 438 |
439 WebRTCTransportImpl::WebRTCTransportImpl(webrtc::VoENetwork* network) | 439 WebRTCTransportImpl::WebRTCTransportImpl(webrtc::VoENetwork* network) |
440 : network_(network) { | 440 : network_(network) { |
441 } | 441 } |
442 | 442 |
443 WebRTCTransportImpl::~WebRTCTransportImpl() {} | 443 WebRTCTransportImpl::~WebRTCTransportImpl() {} |
444 | 444 |
445 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { | 445 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { |
446 return network_->ReceivedRTPPacket(channel, data, len); | 446 return network_->ReceivedRTPPacket(channel, data, len); |
447 } | 447 } |
448 | 448 |
449 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, | 449 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, |
450 int len) { | 450 int len) { |
451 return network_->ReceivedRTCPPacket(channel, data, len); | 451 return network_->ReceivedRTCPPacket(channel, data, len); |
452 } | 452 } |
453 | 453 |
454 } // namespace content | 454 } // namespace content |
OLD | NEW |