| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 ADD_FAILURE() << "Failed to wait for message loop"; | 334 ADD_FAILURE() << "Failed to wait for message loop"; |
| 335 } | 335 } |
| 336 } | 336 } |
| 337 | 337 |
| 338 std::string WebRTCAudioDeviceTest::GetTestDataPath( | 338 std::string WebRTCAudioDeviceTest::GetTestDataPath( |
| 339 const base::FilePath::StringType& file_name) { | 339 const base::FilePath::StringType& file_name) { |
| 340 base::FilePath path; | 340 base::FilePath path; |
| 341 EXPECT_TRUE(PathService::Get(DIR_TEST_DATA, &path)); | 341 EXPECT_TRUE(PathService::Get(DIR_TEST_DATA, &path)); |
| 342 path = path.Append(file_name); | 342 path = path.Append(file_name); |
| 343 EXPECT_TRUE(file_util::PathExists(path)); | 343 EXPECT_TRUE(file_util::PathExists(path)); |
| 344 #ifdef OS_WIN | 344 #if defined(OS_WIN) |
| 345 return WideToUTF8(path.value()); | 345 return WideToUTF8(path.value()); |
| 346 #else | 346 #else |
| 347 return path.value(); | 347 return path.value(); |
| 348 #endif | 348 #endif |
| 349 } | 349 } |
| 350 | 350 |
| 351 WebRTCTransportImpl::WebRTCTransportImpl(webrtc::VoENetwork* network) | 351 WebRTCTransportImpl::WebRTCTransportImpl(webrtc::VoENetwork* network) |
| 352 : network_(network) { | 352 : network_(network) { |
| 353 } | 353 } |
| 354 | 354 |
| 355 WebRTCTransportImpl::~WebRTCTransportImpl() {} | 355 WebRTCTransportImpl::~WebRTCTransportImpl() {} |
| 356 | 356 |
| 357 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { | 357 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { |
| 358 return network_->ReceivedRTPPacket(channel, data, len); | 358 return network_->ReceivedRTPPacket(channel, data, len); |
| 359 } | 359 } |
| 360 | 360 |
| 361 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, | 361 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, |
| 362 int len) { | 362 int len) { |
| 363 return network_->ReceivedRTCPPacket(channel, data, len); | 363 return network_->ReceivedRTCPPacket(channel, data, len); |
| 364 } | 364 } |
| 365 | 365 |
| 366 } // namespace content | 366 } // namespace content |
| OLD | NEW |