Index: webrtc/system_wrappers/source/ntp_time_unittest.cc |
diff --git a/webrtc/system_wrappers/source/ntp_time_unittest.cc b/webrtc/system_wrappers/source/ntp_time_unittest.cc |
index fe044716563dc7a36edb807db69d92a2f17fa3af..9a2a9266e1b368ed4ca42f82b270ad0a16a85619 100644 |
--- a/webrtc/system_wrappers/source/ntp_time_unittest.cc |
+++ b/webrtc/system_wrappers/source/ntp_time_unittest.cc |
@@ -54,5 +54,12 @@ TEST(NtpTimeTest, ToMsMeansToNtpMilliseconds) { |
EXPECT_EQ(ntp.ToMs(), clock.CurrentNtpInMilliseconds()); |
} |
+TEST(NtpTimeTest, CanExplicitlyConvertToAndFromUint64) { |
+ uint64_t untyped_time = 0x123456789; |
+ NtpTime time(untyped_time); |
+ EXPECT_EQ(untyped_time, static_cast<uint64_t>(time)); |
+ EXPECT_EQ(NtpTime(0x12345678, 0x90abcdef), NtpTime(0x1234567890abcdef)); |
+} |
+ |
} // namespace |
} // namespace webrtc |