Home
last modified time | relevance | path

Searched refs:expected_length (Results 1 – 25 of 25) sorted by relevance

/third_party/boost/libs/geometry/test/algorithms/
Dtest_length.hpp24 void test_length(Geometry const& geometry, long double expected_length) in test_length() argument
40 BOOST_CHECK_CLOSE(length, expected_length, 0.0001); in test_length()
44 void test_length(Geometry const& geometry, long double expected_length, Strategy strategy) in test_length() argument
60 BOOST_CHECK_CLOSE(length, expected_length, 0.0001); in test_length()
64 void test_geometry(std::string const& wkt, double expected_length) in test_geometry() argument
68 test_length(geometry, expected_length); in test_geometry()
70 test_length(boost::variant<Geometry>(geometry), expected_length); in test_geometry()
75 void test_geometry(std::string const& wkt, double expected_length, Strategy strategy) in test_geometry() argument
79 test_length(geometry, expected_length, strategy); in test_geometry()
81 test_length(boost::variant<Geometry>(geometry), expected_length, strategy); in test_geometry()
Dtest_for_each.hpp203 double expected_length) in test_per_segment_const() argument
220 BOOST_CHECK_CLOSE(functor.sum, expected_length, 0.0001); in test_per_segment_const()
250 , double expected_length in test_per_segment() argument
256 test_per_segment_const(geometry, expected_dsv, expected_length); in test_per_segment()
268 , double expected_length in test_geometry() argument
273 test_per_segment<Geometry>(wkt, expected_dsv, expected_length, expected_wkt); in test_geometry()
/third_party/flutter/skia/third_party/externals/libwebp/imageio/
Dpngdec.c70 size_t expected_length) { in HexStringToBytes() argument
73 uint8_t* const raw_data = (uint8_t*)malloc(expected_length); in HexStringToBytes()
78 for (dst = raw_data; actual_length < expected_length && *src != '\0'; ++src) { in HexStringToBytes()
90 if (actual_length != expected_length) { in HexStringToBytes()
101 int expected_length; in ProcessRawProfile() local
115 expected_length = (int)strtol(src, &end, 10); in ProcessRawProfile()
124 payload->bytes = HexStringToBytes(end, expected_length); in ProcessRawProfile()
126 payload->size = expected_length; in ProcessRawProfile()
/third_party/skia/third_party/externals/libwebp/imageio/
Dpngdec.c70 size_t expected_length) { in HexStringToBytes() argument
73 uint8_t* const raw_data = (uint8_t*)malloc(expected_length); in HexStringToBytes()
78 for (dst = raw_data; actual_length < expected_length && *src != '\0'; ++src) { in HexStringToBytes()
90 if (actual_length != expected_length) { in HexStringToBytes()
101 int expected_length; in ProcessRawProfile() local
115 expected_length = (int)strtol(src, &end, 10); in ProcessRawProfile()
124 payload->bytes = HexStringToBytes(end, expected_length); in ProcessRawProfile()
126 payload->size = expected_length; in ProcessRawProfile()
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dhb-test.h172 unsigned int expected_length, actual_length; in hb_test_assert_blobs_equal() local
173 const char *raw_expected = hb_blob_get_data (expected_blob, &expected_length); in hb_test_assert_blobs_equal()
175 g_assert_cmpint(expected_length, ==, actual_length); in hb_test_assert_blobs_equal()
176 if (memcmp (raw_expected, raw_actual, expected_length) != 0) in hb_test_assert_blobs_equal()
178 for (unsigned int i = 0; i < expected_length; i++) in hb_test_assert_blobs_equal()
186 g_assert_cmpint(0, ==, memcmp(raw_expected, raw_actual, expected_length)); in hb_test_assert_blobs_equal()
/third_party/flutter/skia/third_party/externals/harfbuzz/test/api/
Dhb-test.h172 unsigned int expected_length, actual_length; in hb_test_assert_blobs_equal() local
173 const char *raw_expected = hb_blob_get_data (expected_blob, &expected_length); in hb_test_assert_blobs_equal()
175 g_assert_cmpint(expected_length, ==, actual_length); in hb_test_assert_blobs_equal()
176 if (memcmp (raw_expected, raw_actual, expected_length) != 0) in hb_test_assert_blobs_equal()
178 for (unsigned int i = 0; i < expected_length; i++) in hb_test_assert_blobs_equal()
186 g_assert_cmpint(0, ==, memcmp(raw_expected, raw_actual, expected_length)); in hb_test_assert_blobs_equal()
/third_party/harfbuzz/test/api/
Dhb-test.h172 unsigned int expected_length, actual_length; in hb_test_assert_blobs_equal() local
173 const char *raw_expected = hb_blob_get_data (expected_blob, &expected_length); in hb_test_assert_blobs_equal()
175 g_assert_cmpint(expected_length, ==, actual_length); in hb_test_assert_blobs_equal()
176 if (memcmp (raw_expected, raw_actual, expected_length) != 0) in hb_test_assert_blobs_equal()
178 for (unsigned int i = 0; i < expected_length; i++) in hb_test_assert_blobs_equal()
186 g_assert_cmpint(0, ==, memcmp(raw_expected, raw_actual, expected_length)); in hb_test_assert_blobs_equal()
/third_party/ffmpeg/libavcodec/tests/
Dmjpegenc_huffman.c34 static int check_lengths(int L, int expected_length, in check_lengths() argument
70 if (actual_length != expected_length) ret = 1; in check_lengths()
77 cantor_measure, actual_length, expected_length); in check_lengths()
/third_party/grpc/src/python/grpcio_tests/tests/http2/
Dnegative_http2_client.py24 def _validate_payload_type_and_length(response, expected_type, expected_length): argument
28 elif len(response.payload.body) != expected_length:
30 (expected_length, len(response.payload.body)))
/third_party/boost/libs/geometry/test/algorithms/set_operations/intersection/
Dtest_intersection.hpp342 double expected_length = 0, in test_one_lp() argument
357 expected_length, settings); in test_one_lp()
364 expected_length, settings); in test_one_lp()
/third_party/grpc/src/python/grpcio_tests/tests/fork/
Dmethods.py47 def _validate_payload_type_and_length(response, expected_type, expected_length): argument
51 elif len(response.payload.body) != expected_length:
53 (expected_length, len(response.payload.body)))
/third_party/grpc/src/python/grpcio_tests/tests/interop/
Dmethods.py60 def _validate_payload_type_and_length(response, expected_type, expected_length): argument
64 elif len(response.payload.body) != expected_length:
66 (expected_length, len(response.payload.body)))
/third_party/grpc/src/python/grpcio_tests/tests_aio/interop/
Dmethods.py66 expected_length: int) -> None:
70 elif len(response.payload.body) != expected_length:
72 (expected_length, len(response.payload.body)))
/third_party/openssl/test/
Dasn1_encode_test.c697 size_t expected_length = make_custom_der(custom_data, &expected, 0); in do_encode_custom() local
700 if (expected_length == 0) in do_encode_custom()
703 ret = do_encode(input, expected, expected_length, package); in do_encode_custom()
/third_party/boost/libs/geometry/test/algorithms/set_operations/difference/
Dtest_difference.hpp422 double expected_length) in test_one_lp() argument
468 BOOST_CHECK_CLOSE(length, expected_length, 0.001); in test_one_lp()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcKHRDebugTests.hpp403 glw::GLenum expected_severity, glw::GLsizei expected_length,
DglcKHRDebugTests.cpp2144 glw::GLenum expected_severity, glw::GLsizei expected_length, in inspectMessageLog() argument
2203 if (expected_length + 1 != length) in inspectMessageLog()
2206 << ", expected " << expected_length << tcu::TestLog::EndMessage; in inspectMessageLog()
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1parse.function550 int expected_length, int expected_unused_bits,
560 TEST_EQUAL( bs.len, (size_t) expected_length );
573 TEST_EQUAL( bs.len, (size_t) expected_length );
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-typedarray-object.c593 …ecma_length_t expected_length = (ecma_arraybuffer_get_length (arraybuffer_p) >> element_size_shift… in ecma_typedarray_create_object_with_buffer() local
595 bool needs_ext_typedarray_obj = (byte_offset != 0 || array_length != expected_length); in ecma_typedarray_create_object_with_buffer()
/third_party/skia/third_party/externals/harfbuzz/src/
Dtest-repacker.cc1175 unsigned expected_length = 3 + 2 * 60000; // objects in test_resolve_overflows_via_isolation_spaces() local
1176 expected_length += 2 * 4 + 2 * 2; // links in test_resolve_overflows_via_isolation_spaces()
1177 assert (result.length == expected_length); in test_resolve_overflows_via_isolation_spaces()
/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectwriter_test.cc145 void CheckOutput(const Message& expected, int expected_length) { in CheckOutput() argument
148 if (expected_length >= 0) { in CheckOutput()
149 EXPECT_EQ(expected_length, nbytes); in CheckOutput()
/third_party/glib/gio/tests/
Dfile.c2266 gsize expected_length) in test_writev_helper() argument
2288 g_assert_cmpuint (bytes_written, ==, expected_length); in test_writev_helper()
2299 g_assert_cmpmem (contents, length, expected_contents, expected_length); in test_writev_helper()
/third_party/libinput/test/
Dtest-pointer.c46 double expected_length; in test_relative_event() local
78 expected_length = sqrt(4 * dx*dx + 4 * dy*dy); in test_relative_event()
87 litest_assert_double_ge(fabs(expected_length), actual_length); in test_relative_event()
/third_party/node/test/fixtures/wpt/resources/
Didlharness.js1597 var expected_length = minOverloadLength(constructors);
1598 …assert_equals(this.get_interface_object().length, expected_length, "wrong value for " + this.name …
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShaderSubroutineTests.cpp2056 GLsizei expected_length = (GLsizei)strlen(m_subroutine_uniform_name); in verifyGLGetActiveSubroutineUniformNameFunctionality() local
2082 m_buffer = new glw::GLchar[expected_length + 1]; in verifyGLGetActiveSubroutineUniformNameFunctionality()
2084 memset(m_buffer, 0, expected_length + 1); in verifyGLGetActiveSubroutineUniformNameFunctionality()
2086 …gl.getActiveSubroutineUniformName(m_po_id, GL_VERTEX_SHADER, 0, expected_length + 1, &reported_len… in verifyGLGetActiveSubroutineUniformNameFunctionality()
2089 if (reported_length != expected_length) in verifyGLGetActiveSubroutineUniformNameFunctionality()
2093 << ", instead of: " << expected_length << tcu::TestLog::EndMessage; in verifyGLGetActiveSubroutineUniformNameFunctionality()