Home
last modified time | relevance | path

Searched refs:kNumSamples (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/webrtc/common_audio/
Dwav_file_unittest.cc29 static const size_t kNumSamples = 3; in TEST() local
35 w.WriteSamples(kSamples, kNumSamples); in TEST()
36 EXPECT_EQ(kNumSamples, w.num_samples()); in TEST()
68 kWavHeaderSize + kNumSamples * sizeof(int16_t) + sizeof(kMetadata); in TEST()
82 EXPECT_EQ(kNumSamples, r.num_samples()); in TEST()
84 float samples[kNumSamples]; in TEST()
85 EXPECT_EQ(kNumSamples, r.ReadSamples(kNumSamples, samples)); in TEST()
87 EXPECT_EQ(0u, r.ReadSamples(kNumSamples, samples)); in TEST()
98 static const size_t kNumSamples = 4; in TEST() local
101 rtc_WavWriteSamples(w, &kSamples[2], kNumSamples - 2); in TEST()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddtmf_tone_generator_unittest.cc29 const int kNumSamples = 10; member in webrtc::DtmfToneGeneratorTest
41 EXPECT_EQ(kNumSamples, tone_gen_.Generate(kNumSamples, &signal)); in TestAllTones()
47 for (int n = 0; n < kNumSamples; ++n) { in TestAllTones()
71 EXPECT_EQ(kNumSamples, tone_gen_.Generate(kNumSamples, &ref_signal)); in TestAmplitudes()
79 EXPECT_EQ(kNumSamples, tone_gen_.Generate(kNumSamples, &signal)); in TestAmplitudes()
80 for (int n = 0; n < kNumSamples; ++n) { in TestAmplitudes()
149 const int kNumSamples = 10; in TEST() local
154 tone_gen.Generate(kNumSamples, &signal)); in TEST()
176 tone_gen.Generate(kNumSamples, NULL)); in TEST()
/external/adhd/cras/src/tests/
Dmix_unittest.cc19 static const size_t kNumSamples = kBufferFrames * kNumChannels; variable
105 kNumSamples, 0, 0, 1.0); in TEST_F()
111 kNumSamples, 0, 0, 1.0); in TEST_F()
113 kNumSamples, 1, 0, 1.0); in TEST_F()
122 kNumSamples, 0, 0, 1.0); in TEST_F()
126 kNumSamples, 1, 0, 1.0); in TEST_F()
135 kNumSamples, 0, 1, 1.0); in TEST_F()
144 kNumSamples, 0, 0, 0.0); in TEST_F()
153 kNumSamples, 0, 0, 0.5); in TEST_F()
162 kNumSamples, 0, 0, 1.0); in TEST_F()
[all …]
/external/webrtc/webrtc/system_wrappers/source/
Dmetrics_unittest.cc67 const int kNumSamples = 10; in TEST() local
68 for (int i = 0; i < kNumSamples; ++i) { in TEST()
71 EXPECT_EQ(kNumSamples, test::NumHistogramSamples(kName)); in TEST()
72 EXPECT_EQ(kNumSamples - 1, test::LastHistogramSample(kName)); in TEST()