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

Side by Side Diff: content/browser/renderer_host/media/audio_renderer_host_unittest.cc

Issue 518433002: Revert of Revert of Remove the last piece of deprecated synchronous IO code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/sync_socket.h" 9 #include "base/sync_socket.h"
10 #include "content/browser/media/capture/audio_mirroring_manager.h" 10 #include "content/browser/media/capture/audio_mirroring_manager.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // we receive the created message. 192 // we receive the created message.
193 int session_id; 193 int session_id;
194 media::AudioParameters params; 194 media::AudioParameters params;
195 if (unified_stream) { 195 if (unified_stream) {
196 // Use AudioInputDeviceManager::kFakeOpenSessionId as the session id to 196 // Use AudioInputDeviceManager::kFakeOpenSessionId as the session id to
197 // pass the permission check. 197 // pass the permission check.
198 session_id = AudioInputDeviceManager::kFakeOpenSessionId; 198 session_id = AudioInputDeviceManager::kFakeOpenSessionId;
199 params = media::AudioParameters( 199 params = media::AudioParameters(
200 media::AudioParameters::AUDIO_FAKE, 200 media::AudioParameters::AUDIO_FAKE,
201 media::CHANNEL_LAYOUT_STEREO, 201 media::CHANNEL_LAYOUT_STEREO,
202 2,
203 media::AudioParameters::kAudioCDSampleRate, 16, 202 media::AudioParameters::kAudioCDSampleRate, 16,
204 media::AudioParameters::kAudioCDSampleRate / 10, 203 media::AudioParameters::kAudioCDSampleRate / 10,
205 media::AudioParameters::NO_EFFECTS); 204 media::AudioParameters::NO_EFFECTS);
206 } else { 205 } else {
207 session_id = 0; 206 session_id = 0;
208 params = media::AudioParameters( 207 params = media::AudioParameters(
209 media::AudioParameters::AUDIO_FAKE, 208 media::AudioParameters::AUDIO_FAKE,
210 media::CHANNEL_LAYOUT_STEREO, 209 media::CHANNEL_LAYOUT_STEREO,
211 media::AudioParameters::kAudioCDSampleRate, 16, 210 media::AudioParameters::kAudioCDSampleRate, 16,
212 media::AudioParameters::kAudioCDSampleRate / 10); 211 media::AudioParameters::kAudioCDSampleRate / 10);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } 346 }
348 347
349 TEST_F(AudioRendererHostTest, CreateUnifiedStreamAndClose) { 348 TEST_F(AudioRendererHostTest, CreateUnifiedStreamAndClose) {
350 Create(true); 349 Create(true);
351 Close(); 350 Close();
352 } 351 }
353 352
354 // TODO(hclam): Add tests for data conversation in low latency mode. 353 // TODO(hclam): Add tests for data conversation in low latency mode.
355 354
356 } // namespace content 355 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.cc ('k') | content/browser/speech/speech_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698