webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
webrtc::DtmfToneGeneratorTest Class Reference
Inheritance diagram for webrtc::DtmfToneGeneratorTest:
testing::Test

Protected Member Functions

void TestAllTones (int fs_hz, int channels)
 
void TestAmplitudes (int fs_hz, int channels)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Protected Attributes

const double kBaseAttenuation = 16141.0 / 16384.0
 
const double k3dbAttenuation = 23171.0 / 32768
 
const int kNumSamples = 10
 
DtmfToneGenerator tone_gen_
 

Static Protected Attributes

static const double kLowFreqHz [16]
 
static const double kHighFreqHz [16]
 

Member Function Documentation

◆ TestAllTones()

void webrtc::DtmfToneGeneratorTest::TestAllTones ( int  fs_hz,
int  channels 
)
inlineprotected

◆ TestAmplitudes()

void webrtc::DtmfToneGeneratorTest::TestAmplitudes ( int  fs_hz,
int  channels 
)
inlineprotected

Member Data Documentation

◆ k3dbAttenuation

const double webrtc::DtmfToneGeneratorTest::k3dbAttenuation = 23171.0 / 32768
protected

◆ kBaseAttenuation

const double webrtc::DtmfToneGeneratorTest::kBaseAttenuation = 16141.0 / 16384.0
protected

◆ kHighFreqHz

const double webrtc::DtmfToneGeneratorTest::kHighFreqHz
staticprotected
Initial value:
= {
1336.0, 1209.0, 1336.0, 1477.0, 1209.0, 1336.0, 1477.0, 1209.0,
1336.0, 1477.0, 1209.0, 1477.0, 1633.0, 1633.0, 1633.0, 1633.0}

◆ kLowFreqHz

const double webrtc::DtmfToneGeneratorTest::kLowFreqHz
staticprotected
Initial value:
= {
941.0, 697.0, 697.0, 697.0, 770.0, 770.0, 770.0, 852.0,
852.0, 852.0, 941.0, 941.0, 697.0, 770.0, 852.0, 941.0}

◆ kNumSamples

const int webrtc::DtmfToneGeneratorTest::kNumSamples = 10
protected

◆ tone_gen_

DtmfToneGenerator webrtc::DtmfToneGeneratorTest::tone_gen_
protected

The documentation for this class was generated from the following file: