/external/grpc-grpc/test/core/tsi/ |
D | transport_security_test_lib.cc | 30 static void notification_signal(tsi_test_fixture* fixture) { in notification_signal() argument 31 gpr_mu_lock(&fixture->mu); in notification_signal() 32 fixture->notified = true; in notification_signal() 33 gpr_cv_signal(&fixture->cv); in notification_signal() 34 gpr_mu_unlock(&fixture->mu); in notification_signal() 37 static void notification_wait(tsi_test_fixture* fixture) { in notification_wait() argument 38 gpr_mu_lock(&fixture->mu); in notification_wait() 39 while (!fixture->notified) { in notification_wait() 40 gpr_cv_wait(&fixture->cv, &fixture->mu, gpr_inf_future(GPR_CLOCK_REALTIME)); in notification_wait() 42 fixture->notified = false; in notification_wait() [all …]
|
D | fake_transport_security_test.cc | 36 static void fake_test_setup_handshakers(tsi_test_fixture* fixture) { in fake_test_setup_handshakers() argument 37 fixture->client_handshaker = in fake_test_setup_handshakers() 39 fixture->server_handshaker = in fake_test_setup_handshakers() 55 static void fake_test_check_handshaker_peers(tsi_test_fixture* fixture) { in fake_test_check_handshaker_peers() argument 56 validate_handshaker_peers(fixture->client_result); in fake_test_check_handshaker_peers() 57 validate_handshaker_peers(fixture->server_result); in fake_test_check_handshaker_peers() 60 static void fake_test_destruct(tsi_test_fixture* fixture) {} in fake_test_destruct() argument 75 tsi_test_fixture* fixture = fake_tsi_test_fixture_create(); in fake_tsi_test_do_handshake_tiny_handshake_buffer() local 76 fixture->handshake_buffer_size = TSI_TEST_TINY_HANDSHAKE_BUFFER_SIZE; in fake_tsi_test_do_handshake_tiny_handshake_buffer() 77 tsi_test_do_handshake(fixture); in fake_tsi_test_do_handshake_tiny_handshake_buffer() [all …]
|
D | ssl_transport_security_test.cc | 100 static void ssl_test_setup_handshakers(tsi_test_fixture* fixture) { in ssl_test_setup_handshakers() argument 102 reinterpret_cast<ssl_tsi_test_fixture*>(fixture); in ssl_test_setup_handshakers() 287 static void ssl_test_check_handshaker_peers(tsi_test_fixture* fixture) { in ssl_test_check_handshaker_peers() argument 289 reinterpret_cast<ssl_tsi_test_fixture*>(fixture); in ssl_test_check_handshaker_peers() 326 static void ssl_test_destruct(tsi_test_fixture* fixture) { in ssl_test_destruct() argument 328 reinterpret_cast<ssl_tsi_test_fixture*>(fixture); in ssl_test_destruct() 462 tsi_test_fixture* fixture = ssl_tsi_test_fixture_create(); in ssl_tsi_test_do_handshake_tiny_handshake_buffer() local 463 fixture->handshake_buffer_size = TSI_TEST_TINY_HANDSHAKE_BUFFER_SIZE; in ssl_tsi_test_do_handshake_tiny_handshake_buffer() 464 tsi_test_do_handshake(fixture); in ssl_tsi_test_do_handshake_tiny_handshake_buffer() 465 tsi_test_fixture_destroy(fixture); in ssl_tsi_test_do_handshake_tiny_handshake_buffer() [all …]
|
D | transport_security_test_lib.h | 68 void (*setup_handshakers)(tsi_test_fixture* fixture); 69 void (*check_handshaker_peers)(tsi_test_fixture* fixture); 70 void (*destruct)(tsi_test_fixture* fixture); 180 void tsi_test_fixture_init(tsi_test_fixture* fixture); 185 void tsi_test_fixture_destroy(tsi_test_fixture* fixture); 194 tsi_test_frame_protector_fixture* fixture, 202 tsi_test_frame_protector_fixture* fixture); 219 void tsi_test_do_handshake(tsi_test_fixture* fixture); 225 void tsi_test_do_round_trip(tsi_test_fixture* fixture); 229 tsi_test_frame_protector_fixture* fixture);
|
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_zero_copy_grpc_protector_test.cc | 105 alts_zero_copy_grpc_protector_test_fixture* fixture = in alts_zero_copy_grpc_protector_test_fixture_create() local 116 &fixture->client) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 120 &fixture->server) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 123 return fixture; in alts_zero_copy_grpc_protector_test_fixture_create() 127 alts_zero_copy_grpc_protector_test_fixture* fixture) { in alts_zero_copy_grpc_protector_test_fixture_destroy() argument 128 if (fixture == nullptr) { in alts_zero_copy_grpc_protector_test_fixture_destroy() 132 tsi_zero_copy_grpc_protector_destroy(fixture->client); in alts_zero_copy_grpc_protector_test_fixture_destroy() 133 tsi_zero_copy_grpc_protector_destroy(fixture->server); in alts_zero_copy_grpc_protector_test_fixture_destroy() 135 gpr_free(fixture); in alts_zero_copy_grpc_protector_test_fixture_destroy() 237 alts_zero_copy_grpc_protector_test_fixture* fixture = in alts_zero_copy_protector_seal_unseal_small_buffer_tests() local [all …]
|
D | alts_iovec_record_protocol_test.cc | 95 alts_iovec_record_protocol_test_fixture* fixture = in alts_iovec_record_protocol_test_fixture_create() local 109 /*is_protect=*/true, &fixture->client_protect, in alts_iovec_record_protocol_test_fixture_create() 117 /*is_protect=*/false, &fixture->client_unprotect, in alts_iovec_record_protocol_test_fixture_create() 125 /*is_protect=*/true, &fixture->server_protect, in alts_iovec_record_protocol_test_fixture_create() 133 /*is_protect=*/false, &fixture->server_unprotect, in alts_iovec_record_protocol_test_fixture_create() 137 return fixture; in alts_iovec_record_protocol_test_fixture_create() 141 alts_iovec_record_protocol_test_fixture* fixture) { in alts_iovec_record_protocol_test_fixture_destroy() argument 142 if (fixture == nullptr) { in alts_iovec_record_protocol_test_fixture_destroy() 145 alts_iovec_record_protocol_destroy(fixture->client_protect); in alts_iovec_record_protocol_test_fixture_destroy() 146 alts_iovec_record_protocol_destroy(fixture->client_unprotect); in alts_iovec_record_protocol_test_fixture_destroy() [all …]
|
D | alts_grpc_record_protocol_test.cc | 113 alts_grpc_record_protocol_test_fixture* fixture = in test_fixture_integrity_only_create() local 127 extra_copy, &fixture->client_protect) == TSI_OK); in test_fixture_integrity_only_create() 134 extra_copy, &fixture->client_unprotect) == TSI_OK); in test_fixture_integrity_only_create() 141 extra_copy, &fixture->server_protect) == TSI_OK); in test_fixture_integrity_only_create() 148 extra_copy, &fixture->server_unprotect) == TSI_OK); in test_fixture_integrity_only_create() 151 return fixture; in test_fixture_integrity_only_create() 171 alts_grpc_record_protocol_test_fixture* fixture = in test_fixture_privacy_integrity_create() local 185 &fixture->client_protect) == TSI_OK); in test_fixture_privacy_integrity_create() 192 &fixture->client_unprotect) == TSI_OK); in test_fixture_privacy_integrity_create() 199 &fixture->server_protect) == TSI_OK); in test_fixture_privacy_integrity_create() [all …]
|
/external/harfbuzz_ng/test/api/ |
D | test-blob.c | 101 free_up (fixture_t *fixture) in free_up() argument 103 g_assert_cmpint (fixture->freed, ==, 0); in free_up() 104 fixture->freed++; in free_up() 108 free_up_free (fixture_t *fixture) in free_up_free() argument 110 free_up (fixture); in free_up_free() 111 free (fixture->data); in free_up_free() 135 free_up_munmap (fixture_t *fixture) in free_up_munmap() argument 137 free_up (fixture); in free_up_munmap() 138 munmap (fixture->data, get_pagesize ()); in free_up_munmap() 144 fixture_init (fixture_t *fixture, gconstpointer user_data) in fixture_init() argument [all …]
|
D | test-buffer.c | 60 fixture_init (fixture_t *fixture, gconstpointer user_data) in fixture_init() argument 65 b = fixture->buffer = hb_buffer_create (); in fixture_init() 95 fixture_finish (fixture_t *fixture, gconstpointer user_data HB_UNUSED) in fixture_finish() argument 97 hb_buffer_destroy (fixture->buffer); in fixture_finish() 102 test_buffer_properties (fixture_t *fixture, gconstpointer user_data HB_UNUSED) in test_buffer_properties() argument 104 hb_buffer_t *b = fixture->buffer; in test_buffer_properties() 180 test_buffer_contents (fixture_t *fixture, gconstpointer user_data) in test_buffer_contents() argument 182 hb_buffer_t *b = fixture->buffer; in test_buffer_contents() 297 test_buffer_positions (fixture_t *fixture, gconstpointer user_data HB_UNUSED) in test_buffer_positions() argument 299 hb_buffer_t *b = fixture->buffer; in test_buffer_positions() [all …]
|
/external/grpc-grpc/test/core/tsi/alts/frame_protector/ |
D | alts_frame_protector_test.cc | 33 tsi_test_frame_protector_fixture* fixture, const uint8_t* key, in alts_test_do_round_trip_check_frames() argument 39 GPR_ASSERT(fixture != nullptr); in alts_test_do_round_trip_check_frames() 40 GPR_ASSERT(fixture->config != nullptr); in alts_test_do_round_trip_check_frames() 43 tsi_test_frame_protector_config* config = fixture->config; in alts_test_do_round_trip_check_frames() 44 tsi_test_channel* channel = fixture->channel; in alts_test_do_round_trip_check_frames() 63 tsi_test_frame_protector_fixture_init(fixture, client_frame_protector, in alts_test_do_round_trip_check_frames() 155 tsi_test_frame_protector_fixture* fixture = in alts_test_do_round_trip_vector_tests() local 158 fixture, key, kAes128GcmKeyLength, /*rekey=*/false, in alts_test_do_round_trip_vector_tests() 162 tsi_test_frame_protector_fixture_destroy(fixture); in alts_test_do_round_trip_vector_tests() 189 fixture = tsi_test_frame_protector_fixture_create(); in alts_test_do_round_trip_vector_tests() [all …]
|
/external/grpc-grpc/test/cpp/microbenchmarks/ |
D | fullstack_streaming_pump.h | 43 std::unique_ptr<Fixture> fixture(new Fixture(&service)); in BM_PumpStreamClientToServer() 53 service.RequestBidiStream(&svr_ctx, &response_rw, fixture->cq(), in BM_PumpStreamClientToServer() 54 fixture->cq(), tag(0)); in BM_PumpStreamClientToServer() 56 EchoTestService::NewStub(fixture->channel())); in BM_PumpStreamClientToServer() 58 auto request_rw = stub->AsyncBidiStream(&cli_ctx, fixture->cq(), tag(1)); in BM_PumpStreamClientToServer() 63 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_PumpStreamClientToServer() 74 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_PumpStreamClientToServer() 87 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_PumpStreamClientToServer() 97 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_PumpStreamClientToServer() 104 fixture->Finish(state); in BM_PumpStreamClientToServer() [all …]
|
D | fullstack_streaming_ping_pong.h | 53 std::unique_ptr<Fixture> fixture(new Fixture(&service)); in BM_StreamingPingPong() 66 EchoTestService::NewStub(fixture->channel())); in BM_StreamingPingPong() 72 service.RequestBidiStream(&svr_ctx, &response_rw, fixture->cq(), in BM_StreamingPingPong() 73 fixture->cq(), tag(0)); in BM_StreamingPingPong() 77 auto request_rw = stub->AsyncBidiStream(&cli_ctx, fixture->cq(), tag(1)); in BM_StreamingPingPong() 84 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_StreamingPingPong() 100 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_StreamingPingPong() 124 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_StreamingPingPong() 134 fixture->Finish(state); in BM_StreamingPingPong() 135 fixture.reset(); in BM_StreamingPingPong() [all …]
|
D | bm_error.cc | 230 Fixture fixture; in BM_ErrorStringOnNewError() local 231 grpc_error_string(fixture.error()); in BM_ErrorStringOnNewError() 239 Fixture fixture; in BM_ErrorStringRepeatedly() local 241 grpc_error_string(fixture.error()); in BM_ErrorStringRepeatedly() 249 Fixture fixture; in BM_ErrorGetStatus() local 254 grpc_error_get_status(fixture.error(), fixture.deadline(), &status, &slice, in BM_ErrorGetStatus() 264 Fixture fixture; in BM_ErrorGetStatusCode() local 268 grpc_error_get_status(fixture.error(), fixture.deadline(), &status, nullptr, in BM_ErrorGetStatusCode() 278 Fixture fixture; in BM_ErrorHttpError() local 282 grpc_error_get_status(fixture.error(), fixture.deadline(), nullptr, nullptr, in BM_ErrorHttpError() [all …]
|
D | fullstack_unary_ping_pong.h | 43 std::unique_ptr<Fixture> fixture(new Fixture(&service)); in BM_UnaryPingPong() 67 &server_env[0]->response_writer, fixture->cq(), in BM_UnaryPingPong() 68 fixture->cq(), tag(0)); in BM_UnaryPingPong() 70 &server_env[1]->response_writer, fixture->cq(), in BM_UnaryPingPong() 71 fixture->cq(), tag(1)); in BM_UnaryPingPong() 73 EchoTestService::NewStub(fixture->channel())); in BM_UnaryPingPong() 80 stub->AsyncEcho(&cli_ctx, send_request, fixture->cq())); in BM_UnaryPingPong() 84 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_UnaryPingPong() 92 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in BM_UnaryPingPong() 103 fixture->cq(), fixture->cq(), tag(slot)); in BM_UnaryPingPong() [all …]
|
D | bm_fullstack_trickle.cc | 241 static void TrickleCQNext(TrickledCHTTP2* fixture, void** t, bool* ok, in TrickleCQNext() argument 244 fixture->Log(iteration); in TrickleCQNext() 246 fixture->cq()->AsyncNext(t, ok, gpr_inf_past(GPR_CLOCK_MONOTONIC))) { in TrickleCQNext() 248 fixture->Step(iteration != -1); in TrickleCQNext() 261 std::unique_ptr<TrickledCHTTP2> fixture(new TrickledCHTTP2( in BM_PumpStreamServerToClient_Trickle() local 274 service.RequestBidiStream(&svr_ctx, &response_rw, fixture->cq(), in BM_PumpStreamServerToClient_Trickle() 275 fixture->cq(), tag(0)); in BM_PumpStreamServerToClient_Trickle() 277 EchoTestService::NewStub(fixture->channel())); in BM_PumpStreamServerToClient_Trickle() 279 auto request_rw = stub->AsyncBidiStream(&cli_ctx, fixture->cq(), tag(1)); in BM_PumpStreamServerToClient_Trickle() 284 TrickleCQNext(fixture.get(), &t, &ok, -1); in BM_PumpStreamServerToClient_Trickle() [all …]
|
D | bm_call_create.cc | 108 Fixture fixture; in BM_CallCreateDestroy() local 111 void* method_hdl = grpc_channel_register_call(fixture.channel(), "/foo/bar", in BM_CallCreateDestroy() 115 fixture.channel(), nullptr, GRPC_PROPAGATE_DEFAULTS, cq, method_hdl, in BM_CallCreateDestroy() 505 Fixture fixture; in BM_IsolatedFilter() local 517 if (fixture.filter != nullptr) { in BM_IsolatedFilter() 518 filters.push_back(fixture.filter); in BM_IsolatedFilter() 520 if (fixture.flags & CHECKS_NOT_LAST) { in BM_IsolatedFilter() 534 fixture.flags & REQUIRES_TRANSPORT in BM_IsolatedFilter() 728 IsolatedCallFixture fixture; in BM_IsolatedCall_NoOp() local 730 void* method_hdl = grpc_channel_register_call(fixture.channel(), "/foo/bar", in BM_IsolatedCall_NoOp() [all …]
|
/external/grpc-grpc/test/cpp/performance/ |
D | writes_per_rpc_test.cc | 171 std::unique_ptr<InProcessCHTTP2> fixture( in UnaryPingPong() local 196 &server_env[0]->response_writer, fixture->cq(), in UnaryPingPong() 197 fixture->cq(), tag(0)); in UnaryPingPong() 199 &server_env[1]->response_writer, fixture->cq(), in UnaryPingPong() 200 fixture->cq(), tag(1)); in UnaryPingPong() 202 EchoTestService::NewStub(fixture->channel())); in UnaryPingPong() 207 stub->AsyncEcho(&cli_ctx, send_request, fixture->cq())); in UnaryPingPong() 211 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in UnaryPingPong() 218 GPR_ASSERT(fixture->cq()->Next(&t, &ok)); in UnaryPingPong() 229 fixture->cq(), fixture->cq(), tag(slot)); in UnaryPingPong() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | process_function_library_runtime_test.cc | 430 ProcessFunctionLibraryRuntimeTest* fixture, in TestTwoDeviceMult() argument 433 fixture->Init({test::function::TwoDeviceMult()}); in TestTwoDeviceMult() 438 Status status = fixture->Run("TwoDeviceMult", opts, {{"T", DT_FLOAT}}, in TestTwoDeviceMult() 445 fixture->rendezvous_->Unref(); in TestTwoDeviceMult() 454 Tensor y_gpu_on_cpu = fixture->GPUToCPU(y_gpu); in TestTwoDeviceMult() 457 fixture->rendezvous_->Unref(); in TestTwoDeviceMult() 461 ProcessFunctionLibraryRuntimeTest* fixture, in TestTwoDeviceInputOutput() argument 463 if (fixture->gpu_device_ == nullptr) { in TestTwoDeviceInputOutput() 466 fixture->Init({test::function::TwoDeviceInputOutput()}); in TestTwoDeviceInputOutput() 470 x1 = fixture->CPUToGPU(x1); in TestTwoDeviceInputOutput() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/bzip2/ |
D | BlockSortTest.java | 149 private DS setUpFixture(final byte[] fixture) { in setUpFixture() argument 151 System.arraycopy(fixture, 0, data.block, 1, fixture.length); in setUpFixture() 156 final byte[] fixture, final byte[] fixtureBwt) { in assertFixtureSorted() argument 157 assertEquals(fixture[fixture.length - 1], data.block[0]); in assertFixtureSorted() 158 for (int i = 0; i < fixture.length; i++) { in assertFixtureSorted()
|
/external/grpc-grpc/test/core/surface/ |
D | num_external_connectivity_watchers_test.cc | 66 static void run_timeouts_test(const test_fixture* fixture) { in run_timeouts_test() argument 67 gpr_log(GPR_INFO, "TEST: %s", fixture->name); in run_timeouts_test() 75 grpc_channel* channel = fixture->create_channel(addr); in run_timeouts_test() 120 const test_fixture* fixture) { in run_channel_shutdown_before_timeout_test() argument 121 gpr_log(GPR_INFO, "TEST: %s", fixture->name); in run_channel_shutdown_before_timeout_test() 129 grpc_channel* channel = fixture->create_channel(addr); in run_channel_shutdown_before_timeout_test()
|
D | sequential_connectivity_test.cc | 54 static void run_test(const test_fixture* fixture) { in run_test() argument 55 gpr_log(GPR_INFO, "TEST: %s", fixture->name); in run_test() 63 fixture->add_server_port(server, addr); in run_test() 76 channels[i] = fixture->create_channel(addr); in run_test()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/ |
D | CompressorStreamFactoryRoundtripTest.java | 61 final String fixture = "The quick brown fox jumps over the lazy dog"; in testCompressorStreamFactoryRoundtrip() local 62 compressorOutputStream.write(fixture.getBytes("UTF-8")); in testCompressorStreamFactoryRoundtrip() 72 Assert.assertEquals(fixture, decompressedOs.toString("UTF-8")); in testCompressorStreamFactoryRoundtrip()
|
/external/grpc-grpc/tools/run_tests/performance/ |
D | run_worker_node.sh | 22 fixture=$1 32 node -r "./test/fixtures/$fixture" test/performance/worker.js "$@"
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
D | TestDriver.cs | 48 ANTLRxxxxStreamFixture fixture = new ANTLRxxxxStreamFixture(); in Main() 49 fixture.TestConsumeAllCharactersInAnANTLRInputStream(); in Main()
|
/external/googletest/googletest/docs/ |
D | primer.md | 91 *test fixture* class. 303 can use a *test fixture*. It allows you to reuse the same configuration of 306 To create a fixture: 309 we'll want to access fixture members from sub-classes. 318 …this [FAQ](faq.md#should-i-use-the-constructordestructor-of-the-test-fixture-or-setupteardown) ent… 321 When using a fixture, use `TEST_F()` instead of `TEST()` as it allows you to 322 access objects and subroutines in the test fixture: 331 must be the name of the test fixture class. You've probably guessed: `_F` is for 332 fixture. 338 Also, you must first define a test fixture class before using it in a [all …]
|