/external/grpc-grpc/test/core/gpr/ |
D | time_test.cc | 143 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 …]
|
D | spinlock_test.cc | 101 while (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), deadline) < 0) { in test()
|
/external/grpc-grpc/src/core/lib/gpr/ |
D | time.cc | 29 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()
|
D | time_windows.cc | 86 if (gpr_time_cmp(until, now) <= 0) { in gpr_sleep_until()
|
D | sync_posix.cc | 77 if (gpr_time_cmp(abs_deadline, gpr_inf_future(abs_deadline.clock_type)) == in gpr_cv_wait()
|
D | sync_windows.cc | 71 if (gpr_time_cmp(abs_deadline, gpr_inf_future(abs_deadline.clock_type)) == in gpr_cv_wait()
|
D | time_posix.cc | 154 if (gpr_time_cmp(until, now) <= 0) { in gpr_sleep_until()
|
/external/grpc-grpc/test/cpp/util/ |
D | time_test.cc | 54 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/ |
D | filter_latency.cc | 234 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/ |
D | iomgr.cc | 95 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/ |
D | jwt_credentials.cc | 69 (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()
|
D | jwt_verifier.cc | 263 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/ |
D | client.cc | 208 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/ |
D | completion_queue.pyx.pxi | 36 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/ |
D | rb_completion_queue.c | 50 gpr_time_cmp(deadline, next_call->timeout) > 0) { in grpc_rb_completion_queue_pluck_no_gil()
|
/external/grpc-grpc/include/grpc/support/ |
D | time.h | 58 GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b);
|
/external/grpc-grpc/src/cpp/util/ |
D | time_cc.cc | 64 if (gpr_time_cmp(t, gpr_inf_future(t.clock_type)) == 0) { in Timespec2Timepoint()
|
/external/grpc-grpc/test/core/security/ |
D | jwt_verifier_test.cc | 242 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()
|
D | credentials_test.cc | 735 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/ |
D | test_tcp_server.cc | 106 gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), shutdown_deadline) < 0) { in test_tcp_server_destroy()
|
/external/grpc-grpc/test/cpp/naming/ |
D | resolver_component_tests_runner_invoker.cc | 79 if (gpr_time_cmp(now, overall_deadline) > 0 || abort_wait_for_child) break; in RunSigHandlingThread()
|
/external/grpc-grpc/test/cpp/interop/ |
D | stress_interop_client.cc | 99 while (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), test_end_time) < 0) { in MainLoop()
|
/external/grpc-grpc/ |
D | grpc.def | 241 gpr_time_cmp
|
/external/grpc-grpc/test/cpp/microbenchmarks/ |
D | bm_fullstack_trickle.cc | 312 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/ |
D | basic_timers.cc | 141 if (gpr_time_cmp(entry->tm, gpr_time_0(entry->tm.clock_type)) < 0) { in write_log()
|