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

Side by Side Diff: components/audio_modem/test/random_samples.h

Issue 1921973002: Convert //components/[a-e]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_ 5 #ifndef COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_
6 #define COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_ 6 #define COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 11
13 namespace media { 12 namespace media {
14 class AudioBus; 13 class AudioBus;
15 class AudioBusRefCounted; 14 class AudioBusRefCounted;
16 } 15 }
17 16
18 namespace audio_modem { 17 namespace audio_modem {
19 18
20 // Populate random samples given a random seed into the samples array. 19 // Populate random samples given a random seed into the samples array.
21 void PopulateSamples(unsigned int random_seed, size_t size, float* samples); 20 void PopulateSamples(unsigned int random_seed, size_t size, float* samples);
22 21
23 // Create an ref counted audio bus populated with random samples. 22 // Create an ref counted audio bus populated with random samples.
24 scoped_refptr<media::AudioBusRefCounted> 23 scoped_refptr<media::AudioBusRefCounted>
25 CreateRandomAudioRefCounted(int random_seed, int channels, int samples); 24 CreateRandomAudioRefCounted(int random_seed, int channels, int samples);
26 25
27 } // namespace audio_modem 26 } // namespace audio_modem
28 27
29 #endif // COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_ 28 #endif // COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_
OLDNEW
« no previous file with comments | « components/audio_modem/public/modem.h ('k') | components/autofill/core/browser/autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698