Home
last modified time | relevance | path

Searched refs:ASSERT_NEAR (Results 1 – 21 of 21) sorted by relevance

/external/webrtc/webrtc/common_audio/
Dwindow_generator_unittest.cc25 ASSERT_NEAR(window[0], 0.707106f, 1e-6f); in TEST()
26 ASSERT_NEAR(window[1], 0.707106f, 1e-6f); in TEST()
27 ASSERT_NEAR(window[2], 0.0f, 1e-6f); in TEST()
28 ASSERT_NEAR(window[3], 0.0f, 1e-6f); in TEST()
29 ASSERT_NEAR(window[4], 0.0f, 1e-6f); in TEST()
30 ASSERT_NEAR(window[5], 0.0f, 1e-6f); in TEST()
31 ASSERT_NEAR(window[6], 0.0f, 1e-6f); in TEST()
34 ASSERT_NEAR(window[0], 0.598066f, 1e-6f); in TEST()
35 ASSERT_NEAR(window[1], 0.922358f, 1e-6f); in TEST()
36 ASSERT_NEAR(window[2], 0.598066f, 1e-6f); in TEST()
[all …]
Dlapped_transform_unittest.cc62 ASSERT_NEAR(in_block[0][0].real(), static_cast<float>(full_length), in ProcessAudioBlock()
64 ASSERT_NEAR(in_block[0][0].imag(), 0.0f, 1e-5f); in ProcessAudioBlock()
66 ASSERT_NEAR(in_block[0][i].real(), 0.0f, 1e-5f); in ProcessAudioBlock()
67 ASSERT_NEAR(in_block[0][i].imag(), 0.0f, 1e-5f); in ProcessAudioBlock()
123 ASSERT_NEAR(out_chunk[i][j], 2.0f, 1e-5f); in TEST()
153 ASSERT_NEAR(out_chunk[i], in TEST()
/external/tensorflow/tensorflow/core/kernels/
Drange_sampler_test.cc123 ASSERT_NEAR(sampler_->Probability(i), 0.05, 1e-4); in TEST_F()
131 ASSERT_NEAR(sampler_->Probability(i), (i + 1) / 55.0, 1e-4); in TEST_F()
163 ASSERT_NEAR(sampler_->Probability(i), pow(2, i * 0.8) / 197.05, 1e-4); in TEST_F()
186 ASSERT_NEAR(sampler_->Probability(0), 0, 1e-4); in TEST_F()
189 ASSERT_NEAR(sampler_->Probability(i), pow(2, (i - 1) * 0.8) / 197.05, 1e-4); in TEST_F()
197 ASSERT_NEAR(sampler_->Probability(0), 0, 1e-4); in TEST_F()
198 ASSERT_NEAR(sampler_->Probability(1), 0, 1e-4); in TEST_F()
201 ASSERT_NEAR(sampler_->Probability(i), pow(2, (i - 2) * 0.8) / 197.05, 1e-4); in TEST_F()
209 ASSERT_NEAR(sampler_->Probability(i), pow(2, i * 0.8) / 197.05, 1e-4); in TEST_F()
225 ASSERT_NEAR(sampler_->Probability(0), 0, 1e-4); in TEST_F()
[all …]
Ddebug_ops_test.cc391 ASSERT_NEAR(1.0, output[0], 1e-8); // Is initialized. in TEST_F()
392 ASSERT_NEAR(9.0, output[1], 1e-8); // Total element count. in TEST_F()
393 ASSERT_NEAR(4.0, output[2], 1e-8); // nan count. in TEST_F()
394 ASSERT_NEAR(2.0, output[3], 1e-8); // -inf count. in TEST_F()
395 ASSERT_NEAR(0.0, output[4], 1e-8); // negative count (excluding -inf). in TEST_F()
396 ASSERT_NEAR(0.0, output[5], 1e-8); // zero count. in TEST_F()
397 ASSERT_NEAR(0.0, output[6], 1e-8); // positive count (excluding +inf). in TEST_F()
398 ASSERT_NEAR(3.0, output[7], 1e-8); // +inf count. in TEST_F()
Dspectrogram_test.cc165 ASSERT_NEAR(real(expected[i][j]), real(actual[i][j]), tolerance) in CompareComplexData()
167 ASSERT_NEAR(imag(expected[i][j]), imag(actual[i][j]), tolerance) in CompareComplexData()
198 ASSERT_NEAR(norm(expected_complex_output[i][j]), in CompareMagnitudeData()
Dquantization_utils_test.cc422 ASSERT_NEAR(expected, actual, range * 1.1e-7) in TestQuantizedToFloatInPlaceUsingEigen()
/external/webrtc/webrtc/modules/audio_processing/agc/
Dhistogram_unittest.cc83 ASSERT_NEAR(audio_content, io.audio_content, abs_err); in RunTest()
87 ASSERT_NEAR(current_loudness, io.loudness, abs_err); in RunTest()
/external/tensorflow/tensorflow/core/framework/
Drun_handler_util_test.cc61 ASSERT_NEAR(end[i] - start[i], thread_demand, 1.0) in VerifyFunction()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Daudio_decoder_unittest.cc54 ASSERT_NEAR(input[n], output[channels * n + delay], tolerance) in CompareInputOutput()
71 ASSERT_NEAR(output[channels * n], output[channels * n + 1], tolerance) in CompareTwoChannels()
/external/google-breakpad/src/testing/gtest/test/
Dgtest_unittest.cc3010 TEST_F(FloatTest, ASSERT_NEAR) { in TEST_F() argument
3011 ASSERT_NEAR(-1.0f, -1.1f, 0.2f); in TEST_F()
3012 ASSERT_NEAR(2.0f, 3.0f, 1.0f); in TEST_F()
3013 EXPECT_FATAL_FAILURE(ASSERT_NEAR(1.0f,1.5f, 0.25f), // NOLINT in TEST_F()
3182 TEST_F(DoubleTest, ASSERT_NEAR) { in TEST_F() argument
3183 ASSERT_NEAR(-1.0, -1.1, 0.2); in TEST_F()
3184 ASSERT_NEAR(2.0, 3.0, 1.0); in TEST_F()
3185 EXPECT_FATAL_FAILURE(ASSERT_NEAR(1.0, 1.5, 0.25), // NOLINT in TEST_F()
4321 EXPECT_FATAL_FAILURE(ASSERT_NEAR(1,1.2, 0.1) << "Expect failure.", // NOLINT in TEST()
/external/googletest/googletest/test/
Dgtest_unittest.cc2945 TEST_F(FloatTest, ASSERT_NEAR) { in TEST_F() argument
2946 ASSERT_NEAR(-1.0f, -1.1f, 0.2f); in TEST_F()
2947 ASSERT_NEAR(2.0f, 3.0f, 1.0f); in TEST_F()
2948 EXPECT_FATAL_FAILURE(ASSERT_NEAR(1.0f,1.5f, 0.25f), // NOLINT in TEST_F()
3098 TEST_F(DoubleTest, ASSERT_NEAR) { in TEST_F() argument
3099 ASSERT_NEAR(-1.0, -1.1, 0.2); in TEST_F()
3100 ASSERT_NEAR(2.0, 3.0, 1.0); in TEST_F()
3101 EXPECT_FATAL_FAILURE(ASSERT_NEAR(1.0, 1.5, 0.25), // NOLINT in TEST_F()
4327 EXPECT_FATAL_FAILURE(ASSERT_NEAR(1,1.2, 0.1) << "Expect failure.", // NOLINT in TEST()
/external/google-breakpad/src/testing/gtest/include/gtest/
Dgtest.h1975 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest.h1975 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/
Dgtest.h1973 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/mesa3d/src/gtest/include/gtest/
Dgtest.h2047 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/
Dgtest.h2047 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/include/gtest/
Dgtest.h2047 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/googletest/googletest/include/gtest/
Dgtest.h2138 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/
Dgtest.h2088 #define ASSERT_NEAR(val1, val2, abs_error)\ macro
/external/googletest/googletest/docs/
Dadvanced.md355 | `ASSERT_NEAR(val1, val2, abs_error);` | `EXPECT_NEAR(val1, val2, abs_error);` | the difference be…
/external/epid-sdk/ext/gtest/
Dgtest.h21014 #define ASSERT_NEAR(val1, val2, abs_error)\