Home
last modified time | relevance | path

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

12

/third_party/grpc/test/core/compression/
Dstream_compression_test.cc59 const char test_str[] = "aaaaaaabbbbbbbccccccctesttesttest"; in test_stream_compression_simple_compress_decompress() local
70 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress()
79 GPR_ASSERT(output_size == sizeof(test_str) - 1); in test_stream_compression_simple_compress_decompress()
83 GPR_ASSERT(slice_buffer_equals_string(&sink, test_str)); in test_stream_compression_simple_compress_decompress()
92 const char test_str[] = "aaaaaaabbbbbbbccccccctesttesttest"; in test_stream_compression_simple_compress_decompress_with_output_size_constraint() local
103 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
120 GPR_ASSERT(0 == strncmp(test_str, str_recv, max_output_size)); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
123 size_t remaining_size = sizeof(test_str) - 1 - max_output_size; in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
129 GPR_ASSERT(slice_buffer_equals_string(&sink, test_str + max_output_size)); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
140 char* test_str = in test_stream_compression_simple_compress_decompress_with_large_data() local
[all …]
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c61 char test_str[] = "LTP"; in test_write_protect() local
63 ret = write(fd, test_str, strlen(test_str)); in test_write_protect()
68 fd, test_str, strlen(test_str)); in test_write_protect()
74 fd, test_str, strlen(test_str)); in test_write_protect()
80 fd, test_str, strlen(test_str)); in test_write_protect()
/third_party/selinux/libsepol/cil/test/unit/
Dtest_cil_lexer.c38 char *test_str = "(test \"qstring\");comment\n"; in test_cil_lexer_setup() local
39 uint32_t str_size = strlen(test_str); in test_cil_lexer_setup()
43 strncpy(buffer, test_str, str_size); in test_cil_lexer_setup()
52 char *test_str = "(test \"qstring\") ;comment\n"; in test_cil_lexer_next() local
53 uint32_t str_size = strlen(test_str); in test_cil_lexer_next()
57 strcpy(buffer, test_str); in test_cil_lexer_next()
/third_party/ltp/testcases/kernel/device-drivers/uaccess/
Dltp_uaccess.c75 test_result = strncmp(test_str, buffer, str_size) ? 1 : 0; in sys_tcase()
78 test_result |= ch != test_str[0]; in sys_tcase()
81 if (copy_to_user(str + 1, test_str + 1, str_size - 1)) { in sys_tcase()
86 if (put_user(test_str[0], str)) { in sys_tcase()
Dltp_uaccess.h24 static const char test_str[] = "Test string"; variable
25 static const int str_size = sizeof(test_str);
Duaccess.c65 int res = set_ptr_to_sysfs(TC_READ_USER, test_str, in tc_read_userspace()
88 res = strncmp(buf, test_str, str_size) ? TFAIL : TPASS; in tc_write_userspace()
/third_party/ltp/pan/
Dsplitstr.c166 char test_str[32768]; in main() local
177 test_str[0] = '\0'; in main()
180 strncat(test_str, buf, 16); in main()
182 ret = splitstr(test_str, NULL, &size_ret); in main()
/third_party/boost/libs/phoenix/test/algorithm/
Dfor_each.cpp34 std::string test_str("(123456789)"); in for_each_test() local
41 BOOST_TEST(out.str() == test_str); in for_each_test()
Dfor_test.cpp35 std::string test_str("(123456789)"); in for_test() local
45 BOOST_TEST(out.str() == test_str); in for_test()
/third_party/node/test/internet/
Dtest-trace-events-dns.js18 const test_str = 'const dns = require("dns");' + constant
48 test_str + tests[tr],
/third_party/mbedtls/tests/scripts/
Dtest_generate_test_code.py1018 test_str = 'yahoo:google'
1019 splits = escaped_split(test_str, ':')
1020 self.assertEqual(splits, test_str.split(':'))
1027 test_str = r'yahoo\:google:facebook'
1028 splits = escaped_split(test_str, ':')
1036 test_str = r'yahoo\\:google:facebook'
1037 splits = escaped_split(test_str, ':')
1045 test_str = r'yahoo\\:google:facebook\:instagram\\:bbc\\:wikipedia'
1046 splits = escaped_split(test_str, ':')
/third_party/jerryscript/tests/unit-core/
Dtest-api-strings.c185 jerry_value_t test_str = jerry_create_string ((const jerry_char_t *) "3"); in main() local
187 jerry_size_t copied_utf8 = jerry_substring_to_utf8_char_buffer (test_str, in main()
196 jerry_size_t copied = jerry_substring_to_char_buffer (test_str, in main()
204 jerry_release_value (test_str); in main()
/third_party/curl/lib/
Dsetup-vms.h85 char *test_str; in vms_translate_path() local
89 test_str = strpbrk(path, ":[<^"); in vms_translate_path()
90 if(!test_str) { in vms_translate_path()
/third_party/grpc/third_party/upb/tests/
Dtest_generated_code.c12 const char test_str[] = "abcdefg"; variable
17 const upb_strview test_str_view = {test_str, sizeof(test_str) - 1};
/third_party/boost/libs/spirit/test/x3/
Dchar1.cpp153 std::all_of(test_strings.begin(), test_strings.end(), [&](auto const test_str) -> bool { in main() argument
154 return test(test_str, chars); in main()
/third_party/boost/libs/multiprecision/performance/
Dperformance_test.hpp164 double test_str(const boost::mpl::false_&) in test_str() function
171 double test_str(const boost::mpl::true_&) in test_str() function
178 double test_str() in test_str() function
180 return test_str(boost::is_class<T>()); in test_str()
663 report_result(cat, type, "str", precision, t.test_str()); in test()
/third_party/libuv/test/
Dtest-spawn.c1148 const WCHAR* test_str[] = { in TEST_IMPL() local
1160 const int count = sizeof(test_str) / sizeof(*test_str); in TEST_IMPL()
1181 test_output[i] = calloc(2 * (wcslen(test_str[i]) + 2), sizeof(WCHAR)); in TEST_IMPL()
1182 quote_cmd_arg(test_str[i], test_output[i]); in TEST_IMPL()
1183 wprintf(L"input : %s\n", test_str[i]); in TEST_IMPL()
1199 wprintf(L"%d: %s\t%s\n", i, test_str[i], cracked[i]); in TEST_IMPL()
1200 ASSERT(wcscmp(test_str[i], cracked[i]) == 0); in TEST_IMPL()
/third_party/python/Lib/test/
Dtest_xxlimited.py33 def test_str(self): member in CommonTests
Dtest_bool.py27 def test_str(self): member in BoolTest
Dtest_marshal.py338 def test_str(self, size): member in LargeValuesTestCase
Dtest__xxsubinterpreters.py555 def test_str(self): member in InterpreterIDTests
1123 def test_str(self): member in ChannelIDTests
/third_party/cef/tests/ceftests/
Dxml_reader_unittest.cc499 char test_str[] = in TEST() local
505 CefStreamReader::CreateForData(test_str, sizeof(test_str) - 1)); in TEST()
/third_party/grpc/test/cpp/end2end/
Dclient_callback_end2end_test.cc296 const std::string& test_str, int reuses, bool do_writes_done) in SendGenericEchoAsBidi() argument
298 activate_ = [this, test, method_name, test_str] { in SendGenericEchoAsBidi()
304 request_.set_message(test_str); in SendGenericEchoAsBidi()
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py65 def test_str(self): member in TestMockingMagicMethods
/third_party/python/Lib/test/test_asyncio/
Dtest_queues.py74 def test_str(self): member in QueueBasicTests

12