/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/webrtc/modules/video_coding/codecs/vp8/ |
D | libvpx_vp8_simulcast_test.cc | 38 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 39 fixture->TestKeyFrameRequestsOnAllStreams(); in TEST() 43 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 44 fixture->TestPaddingAllStreams(); in TEST() 48 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 49 fixture->TestPaddingTwoStreams(); in TEST() 53 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 54 fixture->TestPaddingTwoStreamsOneMaxedOut(); in TEST() 58 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 59 fixture->TestPaddingOneStream(); in TEST() [all …]
|
/external/webrtc/modules/video_coding/codecs/h264/ |
D | h264_simulcast_unittest.cc | 38 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 39 fixture->TestKeyFrameRequestsOnAllStreams(); in TEST() 43 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 44 fixture->TestPaddingAllStreams(); in TEST() 48 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 49 fixture->TestPaddingTwoStreams(); in TEST() 53 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 54 fixture->TestPaddingTwoStreamsOneMaxedOut(); in TEST() 58 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 59 fixture->TestPaddingOneStream(); in TEST() [all …]
|
/external/webrtc/test/ |
D | fake_vp8_encoder_unittest.cc | 43 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 44 fixture->TestKeyFrameRequestsOnAllStreams(); in TEST() 48 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 49 fixture->TestPaddingAllStreams(); in TEST() 53 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 54 fixture->TestPaddingTwoStreams(); in TEST() 58 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 59 fixture->TestPaddingTwoStreamsOneMaxedOut(); in TEST() 63 auto fixture = CreateSpecificSimulcastTestFixture(); in TEST() local 64 fixture->TestPaddingOneStream(); in TEST() [all …]
|
/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 …]
|
/external/webrtc/video/ |
D | full_stack_tests.cc | 95 auto fixture = CreateVideoQualityTestFixture(); in TEST() local 105 fixture->RunWithAnalyzer(foreman_cif); in TEST() 109 auto fixture = CreateVideoQualityTestFixture(); in TEST() local 122 fixture->RunWithAnalyzer(foreman_cif); in TEST() 137 auto fixture = CreateVideoQualityTestFixture(); in TEST() local 148 fixture->RunWithAnalyzer(generator); in TEST() 152 auto fixture = CreateVideoQualityTestFixture(); in TEST() local 162 fixture->RunWithAnalyzer(foreman_cif); in TEST() 166 auto fixture = CreateVideoQualityTestFixture(); in TEST() local 175 fixture->RunWithAnalyzer(generator); in TEST() [all …]
|
D | pc_full_stack_tests.cc | 87 auto fixture = webrtc_pc_e2e::CreatePeerConnectionE2EQualityTestFixture( in CreateTestFixture() local 90 fixture->AddPeer(network_links.first->network_thread(), in CreateTestFixture() 92 fixture->AddPeer(network_links.second->network_thread(), in CreateTestFixture() 94 fixture->AddQualityMetricsReporter( in CreateTestFixture() 97 return fixture; in CreateTestFixture() 115 auto fixture = CreateTestFixture( in TEST() local 134 fixture->Run(std::move(run_params)); in TEST() 143 auto fixture = CreateTestFixture( in TEST() local 161 fixture->Run(std::move(run_params)); in TEST() 177 auto fixture = CreateTestFixture( in TEST() local [all …]
|
/external/webrtc/test/network/ |
D | cross_traffic_unittest.cc | 60 TrafficCounterFixture fixture; in TEST() local 61 TrafficRoute traffic(&fixture.clock, &fixture.counter, &fixture.endpoint); in TEST() 64 EXPECT_EQ(fixture.counter.packets_count_, 100); in TEST() 65 EXPECT_EQ(fixture.counter.total_packets_size_, 100 * 1000ul); in TEST() 69 TrafficCounterFixture fixture; in TEST() local 70 TrafficRoute traffic(&fixture.clock, &fixture.counter, &fixture.endpoint); in TEST() 80 while (fixture.clock.TimeInMilliseconds() < kRunTime.ms()) { in TEST() 81 pulsed_peaks.Process(Timestamp::Millis(fixture.clock.TimeInMilliseconds())); in TEST() 82 fixture.clock.AdvanceTimeMilliseconds(1); in TEST() 85 RTC_LOG(INFO) << fixture.counter.packets_count_ << " packets; " in TEST() [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 …]
|
/external/llvm-project/clang/unittests/DirectoryWatcher/ |
D | DirectoryWatcherTest.cpp | 261 DirectoryWatcherTestFixture fixture; in TEST() local 263 fixture.addFile("a"); in TEST() 264 fixture.addFile("b"); in TEST() 265 fixture.addFile("c"); in TEST() 282 fixture.TestWatchedDir, in TEST() 294 DirectoryWatcherTestFixture fixture; in TEST() local 296 fixture.addFile("a"); in TEST() 297 fixture.addFile("b"); in TEST() 298 fixture.addFile("c"); in TEST() 315 fixture.TestWatchedDir, in TEST() [all …]
|
/external/webrtc/modules/video_coding/codecs/test/ |
D | videocodec_test_libvpx.cc | 99 auto fixture = CreateVideoCodecTestFixture(config); in TEST() local 108 fixture->RunTest(rate_profiles, &rc_thresholds, &quality_thresholds, nullptr); in TEST() 117 auto fixture = CreateVideoCodecTestFixture(config); in TEST() local 132 fixture->RunTest(rate_profiles, &rc_thresholds, &quality_thresholds, nullptr); in TEST() 141 auto fixture = CreateVideoCodecTestFixture(config); in TEST() local 158 fixture->RunTest(rate_profiles, &rc_thresholds, &quality_thresholds, nullptr); in TEST() 168 auto fixture = CreateVideoCodecTestFixture(config); in TEST() local 177 fixture->RunTest(rate_profiles, &rc_thresholds, &quality_thresholds, nullptr); in TEST() 186 auto fixture = CreateVideoCodecTestFixture(config); in TEST() local 195 fixture->RunTest(rate_profiles, &rc_thresholds, &quality_thresholds, nullptr); in TEST() [all …]
|
/external/python/jinja/tests/ |
D | conftest.py | 16 @pytest.fixture 22 @pytest.fixture 28 @pytest.fixture 34 @pytest.fixture 41 @pytest.fixture 47 @pytest.fixture 53 @pytest.fixture
|
/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/python/markupsafe/tests/ |
D | conftest.py | 11 @pytest.fixture( 25 @pytest.fixture(scope="session") 30 @pytest.fixture(scope="session") 35 @pytest.fixture(scope="session") 40 @pytest.fixture(scope="session")
|