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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « content/test/test_browser_thread.cc ('k') | ui/views/test/webview_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "base/test/test_timeouts.h" 13 #include "base/test/test_timeouts.h"
14 #include "base/win/scoped_com_initializer.h" 14 #include "base/win/scoped_com_initializer.h"
15 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 15 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
16 #include "content/browser/renderer_host/media/audio_renderer_host.h" 16 #include "content/browser/renderer_host/media/audio_renderer_host.h"
17 #include "content/browser/renderer_host/media/media_stream_manager.h" 17 #include "content/browser/renderer_host/media/media_stream_manager.h"
18 #include "content/browser/renderer_host/media/mock_media_observer.h" 18 #include "content/browser/renderer_host/media/mock_media_observer.h"
19 #include "content/common/view_messages.h" 19 #include "content/common/view_messages.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "content/public/common/content_paths.h" 21 #include "content/public/common/content_paths.h"
22 #include "content/public/test/mock_resource_context.h" 22 #include "content/public/test/mock_resource_context.h"
23 #include "content/renderer/media/audio_hardware.h" 23 #include "content/renderer/media/audio_hardware.h"
24 #include "content/renderer/media/webrtc_audio_device_impl.h" 24 #include "content/renderer/media/webrtc_audio_device_impl.h"
25 #include "content/renderer/render_process.h" 25 #include "content/renderer/render_process.h"
26 #include "content/renderer/render_thread_impl.h" 26 #include "content/renderer/render_thread_impl.h"
27 #include "content/test/test_browser_thread.h" 27 #include "content/public/test/test_browser_thread.h"
28 #include "net/url_request/url_request_test_util.h" 28 #include "net/url_request/url_request_test_util.h"
29 #include "testing/gmock/include/gmock/gmock.h" 29 #include "testing/gmock/include/gmock/gmock.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "third_party/webrtc/voice_engine/main/interface/voe_audio_processing.h" 31 #include "third_party/webrtc/voice_engine/main/interface/voe_audio_processing.h"
32 #include "third_party/webrtc/voice_engine/main/interface/voe_base.h" 32 #include "third_party/webrtc/voice_engine/main/interface/voe_base.h"
33 #include "third_party/webrtc/voice_engine/main/interface/voe_file.h" 33 #include "third_party/webrtc/voice_engine/main/interface/voe_file.h"
34 #include "third_party/webrtc/voice_engine/main/interface/voe_network.h" 34 #include "third_party/webrtc/voice_engine/main/interface/voe_network.h"
35 35
36 using base::win::ScopedCOMInitializer; 36 using base::win::ScopedCOMInitializer;
37 using testing::_; 37 using testing::_;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 WebRTCTransportImpl::~WebRTCTransportImpl() {} 349 WebRTCTransportImpl::~WebRTCTransportImpl() {}
350 350
351 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { 351 int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) {
352 return network_->ReceivedRTPPacket(channel, data, len); 352 return network_->ReceivedRTPPacket(channel, data, len);
353 } 353 }
354 354
355 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data, 355 int WebRTCTransportImpl::SendRTCPPacket(int channel, const void* data,
356 int len) { 356 int len) {
357 return network_->ReceivedRTCPPacket(channel, data, len); 357 return network_->ReceivedRTCPPacket(channel, data, len);
358 } 358 }
OLDNEW
« no previous file with comments | « content/test/test_browser_thread.cc ('k') | ui/views/test/webview_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698