Home
last modified time | relevance | path

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

12

/external/linux-kselftest/tools/testing/selftests/net/
Dtls.c113 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/
Dstream_compression_test.cc58 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/
Dmemfd_create03.c71 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/
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()
/external/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()
/external/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()
/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc293 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/
Dnetwork_WiFi_BluetoothStreamPerf.py66 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/
Dnetwork_WiFi_BluetoothScanPerf.py64 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/
Dshflags_test_public.sh73 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/
Dsetup-vms.h85 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/
Derror_test.py8 def test_str(self): member in FeatureLibErrorTest
/external/selinux/libsemanage/tests/
Dtest_utilities.c267 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/
Dformat.py254 if any(test_str in contents for test_str in test_str_list):
/external/tensorflow/tensorflow/python/platform/
Dflags_test.py100 def test_str(self): member in FlagsTest
/external/autotest/server/hosts/
Dhost_info_unittest.py130 def test_str(self): member in HostInfoTest
275 def test_str(self): member in InMemoryHostInfoStoreTest
Dfile_store_unittest.py186 def test_str(self): member in FileStoreTestCase
Dafe_store_unittest.py122 def test_str(self): member in AfeStoreTest
/external/autotest/client/bin/net/
Dnet_utils_unittest.py876 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/
Dmetric_spec_test.py312 def test_str(self): member in MetricSpecTest
/external/python/cpython3/Lib/test/
Dtest_bool.py38 def test_str(self): member in BoolTest
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py63 def test_str(self): member in TestMockingMagicMethods
/external/python/mock/mock/tests/
Dtestmagicmethods.py82 def test_str(self): member in TestMockingMagicMethods

12