Home
last modified time | relevance | path

Searched refs:g_state (Results 1 – 12 of 12) sorted by relevance

/external/grpc-grpc/test/core/end2end/
Dinvalid_call_argument_test.cc53 static struct test_state g_state; variable
59 g_state.is_client = is_client; in prepare_test()
60 grpc_metadata_array_init(&g_state.initial_metadata_recv); in prepare_test()
61 grpc_metadata_array_init(&g_state.trailing_metadata_recv); in prepare_test()
62 g_state.deadline = grpc_timeout_seconds_to_deadline(5); in prepare_test()
63 g_state.cq = grpc_completion_queue_create_for_next(nullptr); in prepare_test()
64 g_state.cqv = cq_verifier_create(g_state.cq); in prepare_test()
65 g_state.details = grpc_empty_slice(); in prepare_test()
66 memset(g_state.ops, 0, sizeof(g_state.ops)); in prepare_test()
70 g_state.chan = in prepare_test()
[all …]
/external/libchrome/base/test/
Dtest_support_android.cc39 RunState* g_state = nullptr; variable
58 g_state->should_quit = true; in Quit()
90 RunState state(delegate, g_state ? g_state->run_depth + 1 : 1); in Run()
92 RunState* previous_state = g_state; in Run()
93 g_state = &state; in Run()
97 if (g_state->run_depth > 1) { in Run()
103 g_state = previous_state; in Run()
112 if (g_state->should_quit) in RunNested()
116 more_work_is_plausible = g_state->delegate->DoWork(); in RunNested()
117 if (g_state->should_quit) in RunNested()
[all …]
/external/cronet/base/test/
Dtest_support_android.cc46 RunState* g_state = nullptr; variable
68 g_state->should_quit = true; in Quit()
96 RunState state(delegate, g_state ? g_state->run_depth + 1 : 1); in Run()
98 RunState* previous_state = g_state; in Run()
99 g_state = &state; in Run()
103 if (g_state->run_depth > 1) { in Run()
123 g_state = previous_state; in Run()
132 if (g_state->should_quit) in RunNested()
136 Delegate::NextWorkInfo next_work_info = g_state->delegate->DoWork(); in RunNested()
138 if (g_state->should_quit) in RunNested()
[all …]
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dresolver_registry.cc97 static RegistryState* g_state = nullptr; variable
106 if (g_state == nullptr) g_state = New<RegistryState>(); in InitRegistry()
110 Delete(g_state); in ShutdownRegistry()
111 g_state = nullptr; in ShutdownRegistry()
117 g_state->SetDefaultPrefix(default_resolver_prefix); in SetDefaultPrefix()
123 g_state->RegisterResolverFactory(std::move(factory)); in RegisterResolverFactory()
131 GPR_ASSERT(g_state != nullptr); in LookupResolverFactory()
132 return g_state->LookupResolverFactory(scheme); in LookupResolverFactory()
138 GPR_ASSERT(g_state != nullptr); in CreateResolver()
142 g_state->FindResolverFactory(target, &uri, &canonical_target); in CreateResolver()
[all …]
Dlb_policy_registry.cc58 RegistryState* g_state = nullptr; variable
67 if (g_state == nullptr) g_state = New<RegistryState>(); in InitRegistry()
71 Delete(g_state); in ShutdownRegistry()
72 g_state = nullptr; in ShutdownRegistry()
78 g_state->RegisterLoadBalancingPolicyFactory(std::move(factory)); in RegisterLoadBalancingPolicyFactory()
88 GPR_ASSERT(g_state != nullptr); in CreateLoadBalancingPolicy()
91 g_state->GetLoadBalancingPolicyFactory(name); in CreateLoadBalancingPolicy()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dresolver_registry.cc110 static RegistryState* g_state = nullptr; variable
119 if (g_state == nullptr) g_state = new RegistryState(); in InitRegistry()
123 delete g_state; in ShutdownRegistry()
124 g_state = nullptr; in ShutdownRegistry()
129 g_state->SetDefaultPrefix(default_prefix); in SetDefaultPrefix()
135 g_state->RegisterResolverFactory(std::move(factory)); in RegisterResolverFactory()
143 GPR_ASSERT(g_state != nullptr); in LookupResolverFactory()
144 return g_state->LookupResolverFactory(scheme); in LookupResolverFactory()
151 g_state->FindResolverFactory(target, &uri, &canonical_target); in IsValidTarget()
160 GPR_ASSERT(g_state != nullptr); in CreateResolver()
[all …]
Dlb_policy_registry.cc65 RegistryState* g_state = nullptr; variable
74 if (g_state == nullptr) g_state = new RegistryState(); in InitRegistry()
78 delete g_state; in ShutdownRegistry()
79 g_state = nullptr; in ShutdownRegistry()
85 g_state->RegisterLoadBalancingPolicyFactory(std::move(factory)); in RegisterLoadBalancingPolicyFactory()
95 GPR_ASSERT(g_state != nullptr); in CreateLoadBalancingPolicy()
98 g_state->GetLoadBalancingPolicyFactory(name); in CreateLoadBalancingPolicy()
106 GPR_ASSERT(g_state != nullptr); in LoadBalancingPolicyExists()
107 auto* factory = g_state->GetLoadBalancingPolicyFactory(name); in LoadBalancingPolicyExists()
169 GPR_ASSERT(g_state != nullptr); in ParseLoadBalancingConfig()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/xds/
Dcertificate_provider_registry.cc61 static RegistryState* g_state = nullptr; variable
72 GPR_ASSERT(g_state != nullptr); in LookupCertificateProviderFactory()
73 return g_state->LookupCertificateProviderFactory(name); in LookupCertificateProviderFactory()
77 if (g_state == nullptr) g_state = new RegistryState(); in InitRegistry()
81 delete g_state; in ShutdownRegistry()
82 g_state = nullptr; in ShutdownRegistry()
88 g_state->RegisterCertificateProviderFactory(std::move(factory)); in RegisterCertificateProviderFactory()
/external/rust/crates/quiche/deps/boringssl/src/fuzz/
Dsession.cc26 static GlobalState g_state; variable
31 SSL_SESSION_from_bytes(buf, len, g_state.ctx.get())); in LLVMFuzzerTestOneInput()
Dssl_ctx_api.cc226 static GlobalState g_state; variable
314 SSL_CTX_use_certificate(ctx, g_state.cert_.get()); in LLVMFuzzerTestOneInput()
317 SSL_CTX_use_PrivateKey(ctx, g_state.pkey_.get()); in LLVMFuzzerTestOneInput()
320 SSL_CTX_set1_chain(ctx, g_state.certs_.get()); in LLVMFuzzerTestOneInput()
328 SSL_CTX_add1_chain_cert(ctx, g_state.cert_.get()); in LLVMFuzzerTestOneInput()
436 SSL_CTX_add_client_CA(ctx, g_state.cert_.get()); in LLVMFuzzerTestOneInput()
/external/cronet/third_party/boringssl/src/fuzz/
Dsession.cc26 static GlobalState g_state; variable
31 SSL_SESSION_from_bytes(buf, len, g_state.ctx.get())); in LLVMFuzzerTestOneInput()
Dssl_ctx_api.cc226 static GlobalState g_state; variable
314 SSL_CTX_use_certificate(ctx, g_state.cert_.get()); in LLVMFuzzerTestOneInput()
317 SSL_CTX_use_PrivateKey(ctx, g_state.pkey_.get()); in LLVMFuzzerTestOneInput()
320 SSL_CTX_set1_chain(ctx, g_state.certs_.get()); in LLVMFuzzerTestOneInput()
328 SSL_CTX_add1_chain_cert(ctx, g_state.cert_.get()); in LLVMFuzzerTestOneInput()
436 SSL_CTX_add_client_CA(ctx, g_state.cert_.get()); in LLVMFuzzerTestOneInput()