/external/linux-kselftest/tools/testing/selftests/net/ |
D | tls.c | 113 char const *test_str = "test_send"; in TEST_F() local 114 int to_send = strlen(test_str) + 1; in TEST_F() 123 EXPECT_EQ(send(self->fd, test_str, to_send, 0), to_send); in TEST_F() 125 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F() 144 char const *test_str = "test_read"; in TEST_F() local 148 send_len = strlen(test_str) + 1; in TEST_F() 149 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F() 151 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 156 char const *test_str = "test_read"; in TEST_F() local 160 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F() [all …]
|
/external/grpc-grpc/test/core/compression/ |
D | stream_compression_test.cc | 58 const char test_str[] = "aaaaaaabbbbbbbccccccctesttesttest"; in test_stream_compression_simple_compress_decompress() local 69 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress() 78 GPR_ASSERT(output_size == sizeof(test_str) - 1); in test_stream_compression_simple_compress_decompress() 82 GPR_ASSERT(slice_buffer_equals_string(&sink, test_str)); in test_stream_compression_simple_compress_decompress() 91 const char test_str[] = "aaaaaaabbbbbbbccccccctesttesttest"; in test_stream_compression_simple_compress_decompress_with_output_size_constraint() local 102 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress_with_output_size_constraint() 119 GPR_ASSERT(0 == strncmp(test_str, str_recv, max_output_size)); in test_stream_compression_simple_compress_decompress_with_output_size_constraint() 122 size_t remaining_size = sizeof(test_str) - 1 - max_output_size; in test_stream_compression_simple_compress_decompress_with_output_size_constraint() 128 GPR_ASSERT(slice_buffer_equals_string(&sink, test_str + max_output_size)); in test_stream_compression_simple_compress_decompress_with_output_size_constraint() 139 char* test_str = in test_stream_compression_simple_compress_decompress_with_large_data() local [all …]
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create03.c | 71 char test_str[] = "LTP"; in test_write_protect() local 73 ret = write(fd, test_str, strlen(test_str)); in test_write_protect() 78 fd, test_str, strlen(test_str)); in test_write_protect() 84 fd, test_str, strlen(test_str)); in test_write_protect() 90 fd, test_str, strlen(test_str)); in test_write_protect()
|
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_lexer.c | 38 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()
|
/external/ltp/testcases/kernel/device-drivers/uaccess/ |
D | ltp_uaccess.c | 75 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()
|
D | ltp_uaccess.h | 24 static const char test_str[] = "Test string"; variable 25 static const int str_size = sizeof(test_str);
|
D | uaccess.c | 65 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()
|
/external/ltp/pan/ |
D | splitstr.c | 166 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()
|
/external/tensorflow/tensorflow/core/lib/strings/ |
D | numbers_test.cc | 293 char test_str[2 * kFastToBufferSize]; in TEST() local 294 for (int i = 0; i < 2 * kFastToBufferSize; ++i) test_str[i] = 'a'; in TEST() 295 test_str[kFastToBufferSize + 1] = '\0'; in TEST() 296 EXPECT_FALSE(safe_strtof(test_str, &result)); in TEST() 331 char test_str[2 * kFastToBufferSize]; in TEST() local 332 for (int i = 0; i < 2 * kFastToBufferSize; ++i) test_str[i] = 'a'; in TEST() 333 test_str[kFastToBufferSize + 1] = '\0'; in TEST() 334 EXPECT_FALSE(safe_strtod(test_str, &result)); in TEST()
|
/external/autotest/server/site_tests/network_WiFi_BluetoothStreamPerf/ |
D | network_WiFi_BluetoothStreamPerf.py | 66 test_str = '_'.join([ap_config_tag, bt_tag]) 71 signal_description = '_'.join(['signal', test_str]) 86 prefix='_'.join([config.tag, test_str]))) 100 self.write_perf_keyval({'_'.join([config.tag, test_str, 'drop']): 107 { '_'.join(['ping', test_str]): result_ping.avg_latency })
|
/external/autotest/server/site_tests/network_WiFi_BluetoothScanPerf/ |
D | network_WiFi_BluetoothScanPerf.py | 64 test_str = '_'.join([ap_config_tag, bt_tag]) 68 signal_description = '_'.join(['signal', test_str]) 82 prefix='_'.join([config.tag, test_str]))) 87 { '_'.join(['ping', test_str]): result_ping.avg_latency })
|
/external/shflags/src/ |
D | shflags_test_public.sh | 73 DEFINE_string test_str '' 'test string' s 113 DEFINE_string test_str '' 'test string' s 126 -s,--test_str: test string (default: '')
|
/external/curl/lib/ |
D | setup-vms.h | 85 char *test_str; in vms_translate_path() local 89 test_str = strpbrk(path, ":[<^"); in vms_translate_path() 90 if(test_str == NULL) { in vms_translate_path()
|
/external/fonttools/Tests/feaLib/ |
D | error_test.py | 8 def test_str(self): member in FeatureLibErrorTest
|
/external/selinux/libsemanage/tests/ |
D | test_utilities.c | 267 const char *test_str = "Hello, I am %{USERNAME} and my id is %{USERID}"; in test_semanage_str_replace() local 270 str1 = semanage_str_replace("%{USERNAME}", "root", test_str, 0); in test_semanage_str_replace()
|
/external/libcxx/utils/libcxx/test/ |
D | format.py | 254 if any(test_str in contents for test_str in test_str_list):
|
/external/tensorflow/tensorflow/python/platform/ |
D | flags_test.py | 100 def test_str(self): member in FlagsTest
|
/external/autotest/server/hosts/ |
D | host_info_unittest.py | 130 def test_str(self): member in HostInfoTest 275 def test_str(self): member in InMemoryHostInfoStoreTest
|
D | file_store_unittest.py | 186 def test_str(self): member in FileStoreTestCase
|
D | afe_store_unittest.py | 122 def test_str(self): member in AfeStoreTest
|
/external/autotest/client/bin/net/ |
D | net_utils_unittest.py | 876 test_str = 'test string' 877 mock_netif._socket.recv_val = test_str 878 rcv_str = mock_netif.recv(len(test_str)) 879 self.assertEquals(rcv_str, test_str)
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/ |
D | metric_spec_test.py | 312 def test_str(self): member in MetricSpecTest
|
/external/python/cpython3/Lib/test/ |
D | test_bool.py | 38 def test_str(self): member in BoolTest
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testmagicmethods.py | 63 def test_str(self): member in TestMockingMagicMethods
|
/external/python/mock/mock/tests/ |
D | testmagicmethods.py | 82 def test_str(self): member in TestMockingMagicMethods
|