Lines Matching refs:tm
138 static struct tm MakeTm() { in MakeTm()
139 struct tm tm; in MakeTm() local
140 memset(&tm, 0, sizeof(struct tm)); in MakeTm()
141 tm.tm_year = 2001 - 1900; in MakeTm()
142 tm.tm_mon = 1; in MakeTm()
143 tm.tm_mday = 12; in MakeTm()
144 tm.tm_hour = 18; in MakeTm()
145 tm.tm_min = 30; in MakeTm()
146 tm.tm_sec = 20; in MakeTm()
147 return tm; in MakeTm()
153 struct tm tm = MakeTm(); in TEST_F() local
154 time_t time = mktime(&tm); in TEST_F()
169 struct tm mod = data.GetModificationTime(); in TEST_F()
170 EXPECT_EQ(tm.tm_sec, mod.tm_sec); in TEST_F()
171 EXPECT_EQ(tm.tm_min, mod.tm_min); in TEST_F()
172 EXPECT_EQ(tm.tm_hour, mod.tm_hour); in TEST_F()
173 EXPECT_EQ(tm.tm_mday, mod.tm_mday); in TEST_F()
174 EXPECT_EQ(tm.tm_mon, mod.tm_mon); in TEST_F()
175 EXPECT_EQ(tm.tm_year, mod.tm_year); in TEST_F()
203 struct tm tm = MakeTm(); in TEST_F() local
204 time_t time = mktime(&tm); in TEST_F()
219 struct tm mod = data.GetModificationTime(); in TEST_F()
220 EXPECT_EQ(tm.tm_sec, mod.tm_sec); in TEST_F()
221 EXPECT_EQ(tm.tm_min, mod.tm_min); in TEST_F()
222 EXPECT_EQ(tm.tm_hour, mod.tm_hour); in TEST_F()
223 EXPECT_EQ(tm.tm_mday, mod.tm_mday); in TEST_F()
224 EXPECT_EQ(tm.tm_mon, mod.tm_mon); in TEST_F()
225 EXPECT_EQ(tm.tm_year, mod.tm_year); in TEST_F()