Home
last modified time | relevance | path

Searched refs:expected_elements (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/modules/audio_processing/beamformer/
Dmatrix_test_helpers.h35 const T* const* expected_elements = expected.elements(); in ValidateMatrixEquality() local
39 EXPECT_EQ(expected_elements[i][j], actual_elements[i][j]); in ValidateMatrixEquality()
49 const float* const* expected_elements = expected.elements(); in ValidateMatrixEqualityFloat() local
53 EXPECT_NEAR(expected_elements[i][j], actual_elements[i][j], kTolerance); in ValidateMatrixEqualityFloat()
64 const complex<float>* const* expected_elements = expected.elements(); in ValidateMatrixEqualityComplexFloat() local
68 EXPECT_NEAR(expected_elements[i][j].real(), in ValidateMatrixEqualityComplexFloat()
71 EXPECT_NEAR(expected_elements[i][j].imag(), in ValidateMatrixEqualityComplexFloat()
85 const complex<float>* const* expected_elements = expected.elements(); in ValidateMatrixNearEqualityComplexFloat() local
89 EXPECT_NEAR(expected_elements[i][j].real(), in ValidateMatrixNearEqualityComplexFloat()
92 EXPECT_NEAR(expected_elements[i][j].imag(), in ValidateMatrixNearEqualityComplexFloat()
/external/webrtc/webrtc/common_audio/
Dring_buffer_unittest.cc76 const int expected_elements = std::min(num_elements, buffer_available); in RandomStressTest() local
77 write_element = SetIncrementingData(write_data.get(), expected_elements, in RandomStressTest()
79 ASSERT_EQ(static_cast<size_t>(expected_elements), in RandomStressTest()
82 buffer_consumed = std::min(buffer_consumed + expected_elements, in RandomStressTest()
85 const int expected_elements = std::min(num_elements, in RandomStressTest() local
89 ASSERT_EQ(static_cast<size_t>(expected_elements), in RandomStressTest()
98 read_element = CheckIncrementingData(check_ptr, expected_elements, in RandomStressTest()
100 buffer_consumed = std::max(buffer_consumed - expected_elements, 0); in RandomStressTest()