Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / components / audio_modem / test / random_samples.h
blob081fb8cd7d7e1584583117b08f751a7790575302
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_
6 #define COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_
8 #include <cstddef>
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
13 namespace media {
14 class AudioBus;
15 class AudioBusRefCounted;
18 namespace audio_modem {
20 // Populate random samples given a random seed into the samples array.
21 void PopulateSamples(unsigned int random_seed, size_t size, float* samples);
23 // Create an ref counted audio bus populated with random samples.
24 scoped_refptr<media::AudioBusRefCounted>
25 CreateRandomAudioRefCounted(int random_seed, int channels, int samples);
27 } // namespace audio_modem
29 #endif // COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_