Home
last modified time | relevance | path

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

12

/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_rpc_test.py25 from tests.unit.framework.common import test_constants
79 for _ in range(test_constants.STREAM_LENGTH):
261 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
276 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
293 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
310 b'\x77\x58' for _ in range(test_constants.STREAM_LENGTH))
341 pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
343 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
347 ] * test_constants.THREAD_CONCURRENCY
348 response_futures = [None] * test_constants.THREAD_CONCURRENCY
[all …]
D_resource_exhausted_test.py24 from tests.unit.framework.common import test_constants
74 for _ in range(test_constants.STREAM_LENGTH):
137 self._server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
138 self._trigger = _TestTrigger(test_constants.THREAD_CONCURRENCY)
143 maximum_concurrent_rpcs=test_constants.THREAD_CONCURRENCY)
154 for _ in range(test_constants.THREAD_CONCURRENCY):
179 for _ in range(test_constants.THREAD_CONCURRENCY):
204 request = iter([_REQUEST] * test_constants.STREAM_LENGTH)
205 for _ in range(test_constants.THREAD_CONCURRENCY):
231 request = iter([_REQUEST] * test_constants.STREAM_LENGTH)
[all …]
D_empty_message_test.py20 from tests.unit.framework.common import test_constants
36 for _ in range(test_constants.STREAM_LENGTH):
105 self.assertSequenceEqual([_RESPONSE] * test_constants.STREAM_LENGTH,
110 [_REQUEST] * test_constants.STREAM_LENGTH))
115 [_REQUEST] * test_constants.STREAM_LENGTH))
116 self.assertSequenceEqual([_RESPONSE] * test_constants.STREAM_LENGTH,
D_invocation_defects_test.py22 from tests.unit.framework.common import test_constants
72 for _ in range(test_constants.STREAM_LENGTH):
219 requests = [b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH)]
229 requests = [b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH)]
239 requests = [b'\x77\x58' for _ in range(test_constants.STREAM_LENGTH)]
250 test_constants.STREAM_LENGTH // 2, b'\x07\x08')
257 for _ in range(test_constants.STREAM_LENGTH // 2 + 1):
D_invalid_metadata_test.py20 from tests.unit.framework.common import test_constants
97 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
106 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
116 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
125 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
D_interceptor_test.py26 from tests.unit.framework.common import test_constants
75 for _ in range(test_constants.STREAM_LENGTH):
315 self._server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
355 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
365 self.assertEqual(len(responses), 3 * test_constants.STREAM_LENGTH)
375 self.assertEqual(len(responses), test_constants.STREAM_LENGTH)
508 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
531 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
555 b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH))
578 b'\x77\x58' for _ in range(test_constants.STREAM_LENGTH))
D_exit_scenarios.py22 from tests.unit.framework.common import test_constants
68 for _ in range(test_constants.STREAM_LENGTH // 2):
78 for _ in range(test_constants.STREAM_LENGTH // 2):
88 for _ in range(test_constants.STREAM_LENGTH // 2):
227 iter([REQUEST] * test_constants.STREAM_LENGTH))
D_channel_ready_future_test.py20 from tests.unit.framework.common import test_constants
51 ready_future.result(timeout=test_constants.SHORT_TIMEOUT)
73 ready_future.result(timeout=test_constants.LONG_TIMEOUT))
D_channel_close_test.py23 from tests.unit.framework.common import test_constants
100 max_workers=test_constants.THREAD_CONCURRENCY)
146 for _ in range(test_constants.THREAD_CONCURRENCY))
171 for _ in range(test_constants.THREAD_CONCURRENCY):
D_metadata_code_details_test.py22 from tests.unit.framework.common import test_constants
100 for _ in range(test_constants.STREAM_LENGTH // 2):
140 for _ in range(test_constants.STREAM_LENGTH // 3):
273 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
292 iter([object()] * test_constants.STREAM_LENGTH),
376 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
404 iter([object()] * test_constants.STREAM_LENGTH),
475 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
497 iter([object()] * test_constants.STREAM_LENGTH),
569 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
[all …]
D_metadata_test.py23 from tests.unit.framework.common import test_constants
112 for _ in range(test_constants.STREAM_LENGTH):
215 iter([_REQUEST] * test_constants.STREAM_LENGTH),
227 iter([_REQUEST] * test_constants.STREAM_LENGTH),
D_channel_connectivity_test.py21 from tests.unit.framework.common import test_constants
70 time.sleep(test_constants.SHORT_TIMEOUT)
98 time.sleep(test_constants.SHORT_TIMEOUT)
D_reconnect_test.py23 from tests.unit.framework.common import test_constants
76 server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
D_compression_test.py22 from tests.unit.framework.common import test_constants
114 call = multi_callable(iter([request] * test_constants.STREAM_LENGTH))
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/_cython/
D_cancel_many_calls_test.py21 from tests.unit.framework.common import test_constants
34 _SUCCESSFUL_CALLS = int(test_constants.RPC_CONCURRENCY * _SUCCESS_CALL_FRACTION)
35 _UNSUCCESSFUL_CALLS = test_constants.RPC_CONCURRENCY - _SUCCESSFUL_CALLS
63 if self._state.parked_handlers == test_constants.THREAD_CONCURRENCY:
95 for _ in range(test_constants.RPC_CONCURRENCY):
103 if test_constants.RPC_CONCURRENCY <= state.handled_rpcs:
144 test_constants.THREAD_CONCURRENCY)
175 for index in range(test_constants.RPC_CONCURRENCY):
201 if state.parked_handlers < test_constants.THREAD_CONCURRENCY:
203 elif state.handled_rpcs < test_constants.RPC_CONCURRENCY:
D_channel_test.py21 from tests.unit.framework.common import test_constants
43 for _ in range(test_constants.THREAD_CONCURRENCY))
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_beta_features_test.py25 from tests.unit.framework.common import test_constants
162 thread_pool_size=test_constants.POOL_SIZE)
180 thread_pool_size=test_constants.POOL_SIZE)
186 self._server.stop(test_constants.SHORT_TIMEOUT).wait()
193 test_constants.LONG_TIMEOUT,
210 test_constants.LONG_TIMEOUT,
228 test_constants.LONG_TIMEOUT,
251 test_constants.SHORT_TIMEOUT,
293 thread_pool_size=test_constants.POOL_SIZE)
303 thread_pool_size=test_constants.POOL_SIZE)
[all …]
D_not_found_test.py21 from tests.unit.framework.common import test_constants
43 test_constants.LONG_TIMEOUT,
50 'grupe', 'mevvod', iter([b'def']), test_constants.LONG_TIMEOUT)
D_utilities_test.py23 from tests.unit.framework.common import test_constants
54 ready_future.result(timeout=test_constants.SHORT_TIMEOUT)
76 ready_future.result(timeout=test_constants.LONG_TIMEOUT))
/external/grpc-grpc/src/python/grpcio_tests/tests/protoc_plugin/
Dbeta_python_plugin_test.py33 from tests.unit.framework.common import test_constants
363 stub.UnaryCall(request, test_constants.LONG_TIMEOUT)
374 response = stub.UnaryCall(request, test_constants.LONG_TIMEOUT)
387 request, test_constants.LONG_TIMEOUT)
400 request, test_constants.SHORT_TIMEOUT)
423 request, test_constants.LONG_TIMEOUT)
433 test_constants.LONG_TIMEOUT)
448 request, test_constants.SHORT_TIMEOUT)
459 test_constants.LONG_TIMEOUT)
485 test_constants.LONG_TIMEOUT)
[all …]
D_python_plugin_test.py31 from tests.unit.framework.common import test_constants
277 request, timeout=test_constants.SHORT_TIMEOUT)
320 request, timeout=test_constants.SHORT_TIMEOUT)
375 timeout=test_constants.SHORT_TIMEOUT)
420 request_iterator, timeout=test_constants.SHORT_TIMEOUT)
496 timeout=test_constants.SHORT_TIMEOUT)
/external/llvm-project/llvm/test/CodeGen/ARM/GlobalISel/
Darm-legalize-consts.mir4 define void @test_constants() { ret void }
7 name: test_constants
8 # CHECK-LABEL: name: test_constants
/external/grpc-grpc/src/python/grpcio_tests/tests/testing/
D_client_application.py22 from tests.unit.framework.common import test_constants
155 for _ in range(test_constants.THREAD_CONCURRENCY))
169 outcomes = [None] * test_constants.RPC_CONCURRENCY
177 for index in range(test_constants.RPC_CONCURRENCY):
/external/python/pybind11/tests/
Dtest_constants_and_functions.py7 def test_constants(): function
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DErrorManagerTest.java53 public void test_constants() { in test_constants() method in ErrorManagerTest

12