Go to the documentation of this file.
19 #include <gtest/gtest.h>
26 using std::chrono::microseconds;
27 using std::chrono::system_clock;
34 TEST_F(TimeTest, AbsolutePointTest) {
50 TEST_F(TimeTest, InfFuture) {
60 &from_time_point_max);
68 int main(
int argc,
char** argv) {
std::chrono::time_point< std::chrono::system_clock, D > time_point
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
std::chrono::system_clock::time_point Timespec2Timepoint(gpr_timespec t)
gpr_clock_type clock_type
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
GPRAPI gpr_timespec gpr_time_from_micros(int64_t us, gpr_clock_type clock_type)
void Timepoint2Timespec(const std::chrono::system_clock::time_point &from, gpr_timespec *to)
EXPECT_EQ(grpc::StatusCode::INVALID_ARGUMENT, status.error_code())
int main(int argc, char **argv)
#define TEST_F(test_fixture, test_name)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:36