diff options
author | 2015-01-06 10:16:15 -0800 | |
---|---|---|
committer | 2015-01-06 17:45:46 -0800 | |
commit | ed5e7e006b1a60ef01a0ee1db144e959436b53d7 (patch) | |
tree | 4166d8504d804d00ff96e8ce47ae4e6ecf7e2152 /test/cpp/util/time_test.cc | |
parent | c87b1c533f84a9bed94143908b00b0cc498cfda5 (diff) |
Add deadline API on server side.
Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83351442
Diffstat (limited to 'test/cpp/util/time_test.cc')
-rw-r--r-- | test/cpp/util/time_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cpp/util/time_test.cc b/test/cpp/util/time_test.cc index 97499fed28..c571808633 100644 --- a/test/cpp/util/time_test.cc +++ b/test/cpp/util/time_test.cc @@ -62,5 +62,11 @@ TEST_F(TimeTest, AbsolutePointTest) { EXPECT_TRUE(tp == tp_converted_2); } +// gpr_inf_future is treated specially and mapped to time_point::max() +TEST_F(TimeTest, InfFuture) { + EXPECT_EQ(system_clock::time_point::max(), + Timespec2Timepoint(gpr_inf_future)); +} + } // namespace } // namespace grpc |