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

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

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 years, 7 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/mock_resource_context.cc ('k') | content/test/webrtc_audio_device_test.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 #ifndef CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 5 #ifndef CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 std::string GetTestDataPath(const FilePath::StringType& file_name); 163 std::string GetTestDataPath(const FilePath::StringType& file_name);
164 164
165 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; 165 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_;
166 MessageLoopForUI message_loop_; 166 MessageLoopForUI message_loop_;
167 content::MockContentRendererClient mock_content_renderer_client_; 167 content::MockContentRendererClient mock_content_renderer_client_;
168 RenderThreadImpl* render_thread_; // Owned by mock_process_. 168 RenderThreadImpl* render_thread_; // Owned by mock_process_.
169 scoped_ptr<WebRTCMockRenderProcess> mock_process_; 169 scoped_ptr<WebRTCMockRenderProcess> mock_process_;
170 scoped_ptr<MockMediaObserver> media_observer_; 170 scoped_ptr<MockMediaObserver> media_observer_;
171 scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; 171 scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_;
172 scoped_ptr<media::AudioManager> audio_manager_; 172 scoped_ptr<media::AudioManager> audio_manager_;
173 scoped_ptr<content::MockResourceContext> resource_context_; 173 scoped_ptr<net::URLRequestContext> test_request_context_;
174 scoped_refptr<net::URLRequestContext> test_request_context_; 174 scoped_ptr<content::ResourceContext> resource_context_;
175 scoped_ptr<IPC::Channel> channel_; 175 scoped_ptr<IPC::Channel> channel_;
176 scoped_refptr<AudioRendererHost> audio_render_host_; 176 scoped_refptr<AudioRendererHost> audio_render_host_;
177 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; 177 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_;
178 178
179 AudioUtilInterface* audio_util_callback_; // Weak reference. 179 AudioUtilInterface* audio_util_callback_; // Weak reference.
180 180
181 // Initialized on the main test thread that we mark as the UI thread. 181 // Initialized on the main test thread that we mark as the UI thread.
182 scoped_ptr<content::TestBrowserThread> ui_thread_; 182 scoped_ptr<content::TestBrowserThread> ui_thread_;
183 // Initialized on our IO thread to satisfy BrowserThread::IO checks. 183 // Initialized on our IO thread to satisfy BrowserThread::IO checks.
184 scoped_ptr<content::TestBrowserThread> io_thread_; 184 scoped_ptr<content::TestBrowserThread> io_thread_;
(...skipping 14 matching lines...) Expand all
199 virtual ~WebRTCTransportImpl(); 199 virtual ~WebRTCTransportImpl();
200 200
201 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; 201 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE;
202 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; 202 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE;
203 203
204 private: 204 private:
205 webrtc::VoENetwork* network_; 205 webrtc::VoENetwork* network_;
206 }; 206 };
207 207
208 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 208 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
OLDNEW
« no previous file with comments | « content/test/mock_resource_context.cc ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698