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

Side by Side Diff: media/audio/fake_audio_manager.cc

Issue 2161193003: Use __func__ instead of __FUNCTION__. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 4 years, 4 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
« no previous file with comments | « media/audio/audio_output_device.cc ('k') | media/base/audio_discard_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/audio/fake_audio_manager.h" 5 #include "media/audio/fake_audio_manager.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 namespace { 9 namespace {
10 10
11 const int kDefaultInputBufferSize = 1024; 11 const int kDefaultInputBufferSize = 1024;
12 const int kDefaultSampleRate = 48000; 12 const int kDefaultSampleRate = 48000;
13 13
14 } // namespace 14 } // namespace
15 15
16 FakeAudioManager::FakeAudioManager( 16 FakeAudioManager::FakeAudioManager(
17 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 17 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
18 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, 18 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
19 AudioLogFactory* audio_log_factory) 19 AudioLogFactory* audio_log_factory)
20 : AudioManagerBase(std::move(task_runner), 20 : AudioManagerBase(std::move(task_runner),
21 std::move(worker_task_runner), 21 std::move(worker_task_runner),
22 audio_log_factory) { 22 audio_log_factory) {
23 LOG(INFO) << __FUNCTION__; 23 LOG(INFO) << __func__;
24 } 24 }
25 25
26 FakeAudioManager::~FakeAudioManager() { 26 FakeAudioManager::~FakeAudioManager() {
27 LOG(INFO) << __FUNCTION__; 27 LOG(INFO) << __func__;
28 Shutdown(); 28 Shutdown();
29 } 29 }
30 30
31 // Implementation of AudioManager. 31 // Implementation of AudioManager.
32 bool FakeAudioManager::HasAudioOutputDevices() { return false; } 32 bool FakeAudioManager::HasAudioOutputDevices() { return false; }
33 33
34 bool FakeAudioManager::HasAudioInputDevices() { return false; } 34 bool FakeAudioManager::HasAudioInputDevices() { return false; }
35 35
36 // Implementation of AudioManagerBase. 36 // Implementation of AudioManagerBase.
37 AudioOutputStream* FakeAudioManager::MakeLinearOutputStream( 37 AudioOutputStream* FakeAudioManager::MakeLinearOutputStream(
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 AudioParameters FakeAudioManager::GetInputStreamParameters( 84 AudioParameters FakeAudioManager::GetInputStreamParameters(
85 const std::string& device_id) { 85 const std::string& device_id) {
86 return AudioParameters( 86 return AudioParameters(
87 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO, 87 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO,
88 kDefaultSampleRate, 16, kDefaultInputBufferSize); 88 kDefaultSampleRate, 16, kDefaultInputBufferSize);
89 } 89 }
90 90
91 } // namespace media 91 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_output_device.cc ('k') | media/base/audio_discard_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698