Home
last modified time | relevance | path

Searched refs:gpr_time_cmp (Results 1 – 25 of 44) sorted by relevance

12

/external/grpc-grpc/test/core/gpr/
Dtime_test.cc143 if (gpr_time_cmp(gpr_time_from_micros(sum * k, GPR_TIMESPAN), sumt) != in test_add_sub()
152 if (gpr_time_cmp(gpr_time_from_micros(diff * k, GPR_TIMESPAN), difft) != in test_add_sub()
171 } while (gpr_time_cmp(x, gpr_inf_future(GPR_TIMESPAN)) < 0); in test_overflow()
172 GPR_ASSERT(gpr_time_cmp(x, gpr_inf_future(GPR_TIMESPAN)) == 0); in test_overflow()
176 } while (gpr_time_cmp(x, gpr_inf_past(GPR_TIMESPAN)) > 0); in test_overflow()
177 GPR_ASSERT(gpr_time_cmp(x, gpr_inf_past(GPR_TIMESPAN)) == 0); in test_overflow()
196 GPR_ASSERT(gpr_time_cmp(x, infinity[i]) == 0); in test_sticky_infinities()
198 GPR_ASSERT(gpr_time_cmp(x, infinity[i]) == 0); in test_sticky_infinities()
203 GPR_ASSERT(gpr_time_cmp(x, infinity[i]) == 0); in test_sticky_infinities()
205 GPR_ASSERT(gpr_time_cmp(x, infinity[i]) == 0); in test_sticky_infinities()
[all …]
Dspinlock_test.cc101 while (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), deadline) < 0) { in test()
/external/grpc-grpc/src/core/lib/gpr/
Dtime.cc29 int gpr_time_cmp(gpr_timespec a, gpr_timespec b) { in gpr_time_cmp() function
39 return gpr_time_cmp(a, b) < 0 ? a : b; in gpr_time_min()
43 return gpr_time_cmp(a, b) > 0 ? a : b; in gpr_time_max()
202 cmp_ab = gpr_time_cmp(a, b); in gpr_time_similar()
205 return gpr_time_cmp(gpr_time_sub(b, a), threshold) <= 0; in gpr_time_similar()
207 return gpr_time_cmp(gpr_time_sub(a, b), threshold) <= 0; in gpr_time_similar()
Dtime_windows.cc86 if (gpr_time_cmp(until, now) <= 0) { in gpr_sleep_until()
Dsync_posix.cc77 if (gpr_time_cmp(abs_deadline, gpr_inf_future(abs_deadline.clock_type)) == in gpr_cv_wait()
Dsync_windows.cc71 if (gpr_time_cmp(abs_deadline, gpr_inf_future(abs_deadline.clock_type)) == in gpr_cv_wait()
Dtime_posix.cc154 if (gpr_time_cmp(until, now) <= 0) { in gpr_sleep_until()
/external/grpc-grpc/test/cpp/util/
Dtime_test.cc54 0, gpr_time_cmp(gpr_inf_future(GPR_CLOCK_REALTIME), from_time_point_max)); in TEST_F()
60 0, gpr_time_cmp(gpr_inf_future(GPR_CLOCK_REALTIME), from_time_point_max)); in TEST_F()
/external/grpc-grpc/test/core/end2end/tests/
Dfilter_latency.cc234 GPR_ASSERT(gpr_time_cmp(max_latency, g_client_latency) >= 0); in test_request()
235 GPR_ASSERT(gpr_time_cmp(gpr_time_0(GPR_TIMESPAN), g_client_latency) <= 0); in test_request()
236 GPR_ASSERT(gpr_time_cmp(max_latency, g_server_latency) >= 0); in test_request()
237 GPR_ASSERT(gpr_time_cmp(gpr_time_0(GPR_TIMESPAN), g_server_latency) <= 0); in test_request()
/external/grpc-grpc/src/core/lib/iomgr/
Diomgr.cc95 if (gpr_time_cmp( in grpc_iomgr_shutdown()
127 if (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), shutdown_deadline) > in grpc_iomgr_shutdown()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djwt_credentials.cc69 (gpr_time_cmp(gpr_time_sub(c->cached.jwt_expiration, in jwt_get_request_metadata()
133 if (gpr_time_cmp(token_lifetime, max_token_lifetime) > 0) { in grpc_service_account_jwt_access_credentials_create_from_auth_json_key()
Djwt_verifier.cc263 if (gpr_time_cmp(claims->iat, gpr_time_0(GPR_CLOCK_REALTIME)) == 0) in grpc_jwt_claims_from_json()
267 if (gpr_time_cmp(claims->exp, gpr_time_0(GPR_CLOCK_REALTIME)) == 0) in grpc_jwt_claims_from_json()
271 if (gpr_time_cmp(claims->nbf, gpr_time_0(GPR_CLOCK_REALTIME)) == 0) in grpc_jwt_claims_from_json()
291 if (gpr_time_cmp(skewed_now, claims->nbf) < 0) { in grpc_jwt_claims_check()
297 if (gpr_time_cmp(skewed_now, claims->exp) > 0) { in grpc_jwt_claims_check()
/external/grpc-grpc/test/core/fling/
Dclient.cc208 while (gpr_time_cmp(gpr_now(end_warmup.clock_type), end_warmup) < 0) { in main()
214 while (gpr_time_cmp(gpr_now(end_profiling.clock_type), end_profiling) < 0) { in main()
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dcompletion_queue.pyx.pxi36 if gpr_time_cmp(c_timeout, c_deadline) > 0:
40 gpr_time_cmp(c_timeout, c_deadline) == 0):
/external/grpc-grpc/src/ruby/ext/grpc/
Drb_completion_queue.c50 gpr_time_cmp(deadline, next_call->timeout) > 0) { in grpc_rb_completion_queue_pluck_no_gil()
/external/grpc-grpc/include/grpc/support/
Dtime.h58 GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b);
/external/grpc-grpc/src/cpp/util/
Dtime_cc.cc64 if (gpr_time_cmp(t, gpr_inf_future(t.clock_type)) == 0) { in Timespec2Timepoint()
/external/grpc-grpc/test/core/security/
Djwt_verifier_test.cc242 GPR_ASSERT(gpr_time_cmp(grpc_jwt_claims_issued_at(claims), exp_iat) == 0); in test_expired_claims_failure()
243 GPR_ASSERT(gpr_time_cmp(grpc_jwt_claims_expires_at(claims), exp_exp) == 0); in test_expired_claims_failure()
244 GPR_ASSERT(gpr_time_cmp(grpc_jwt_claims_not_before(claims), exp_nbf) == 0); in test_expired_claims_failure()
Dcredentials_test.cc735 GPR_ASSERT(!gpr_time_cmp(token_lifetime, grpc_max_auth_token_lifetime())); in validate_jwt_encode_and_sign_params()
775 GPR_ASSERT(gpr_time_cmp(creds_as_jwt(jwt_creds)->jwt_lifetime, in test_jwt_creds_lifetime()
781 GPR_ASSERT(gpr_time_cmp(grpc_max_auth_token_lifetime(), token_lifetime) > 0); in test_jwt_creds_lifetime()
785 gpr_time_cmp(creds_as_jwt(jwt_creds)->jwt_lifetime, token_lifetime) == 0); in test_jwt_creds_lifetime()
793 GPR_ASSERT(gpr_time_cmp(creds_as_jwt(jwt_creds)->jwt_lifetime, in test_jwt_creds_lifetime()
/external/grpc-grpc/test/core/util/
Dtest_tcp_server.cc106 gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), shutdown_deadline) < 0) { in test_tcp_server_destroy()
/external/grpc-grpc/test/cpp/naming/
Dresolver_component_tests_runner_invoker.cc79 if (gpr_time_cmp(now, overall_deadline) > 0 || abort_wait_for_child) break; in RunSigHandlingThread()
/external/grpc-grpc/test/cpp/interop/
Dstress_interop_client.cc99 while (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), test_end_time) < 0) { in MainLoop()
/external/grpc-grpc/
Dgrpc.def241 gpr_time_cmp
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_fullstack_trickle.cc312 if (gpr_time_cmp(gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), warmup_start), in BM_PumpStreamServerToClient_Trickle()
425 if (gpr_time_cmp(gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), warmup_start), in BM_PumpUnbalancedUnary_Trickle()
/external/grpc-grpc/src/core/lib/profiling/
Dbasic_timers.cc141 if (gpr_time_cmp(entry->tm, gpr_time_0(entry->tm.clock_type)) < 0) { in write_log()

12