replace NtpTime->Clock with Clock->NtpTime dependency
BUG=None
Review-Url: https://codereview.webrtc.org/2393723004
Cr-Commit-Position: refs/heads/master@{#16519}
diff --git a/webrtc/system_wrappers/source/ntp_time_unittest.cc b/webrtc/system_wrappers/source/ntp_time_unittest.cc
index a505789..fe04471 100644
--- a/webrtc/system_wrappers/source/ntp_time_unittest.cc
+++ b/webrtc/system_wrappers/source/ntp_time_unittest.cc
@@ -8,6 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include "webrtc/system_wrappers/include/clock.h"
#include "webrtc/system_wrappers/include/ntp_time.h"
#include "webrtc/test/gtest.h"
@@ -45,21 +46,10 @@
EXPECT_EQ(ntp1, ntp2);
}
-TEST(NtpTimeTest, SetCurrentIsSameAs1ParameterConstructor) {
- SimulatedClock clock(0x0123456789abcdef);
-
- NtpTime ntp1(clock);
- NtpTime ntp2;
- EXPECT_NE(ntp1, ntp2);
-
- ntp2.SetCurrent(clock);
- EXPECT_EQ(ntp1, ntp2);
-}
-
TEST(NtpTimeTest, ToMsMeansToNtpMilliseconds) {
SimulatedClock clock(0x123456789abc);
- NtpTime ntp(clock);
+ NtpTime ntp = clock.CurrentNtpTime();
EXPECT_EQ(ntp.ToMs(), Clock::NtpToMs(ntp.seconds(), ntp.fractions()));
EXPECT_EQ(ntp.ToMs(), clock.CurrentNtpInMilliseconds());
}