mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 22:17:38 +03:00
Rewrite Time with chrono
This commit is contained in:
parent
99cd73c092
commit
b0f440e631
20 changed files with 87 additions and 270 deletions
|
@ -427,14 +427,17 @@ void MultiDiskAdaptorTest::testUtime()
|
|||
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)2, adaptor.utime(Time(atime), Time(mtime)));
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((time_t)mtime,
|
||||
File(entries[0]->getPath()).getModifiedTime().getTime());
|
||||
CPPUNIT_ASSERT_EQUAL(
|
||||
(time_t)mtime,
|
||||
File(entries[0]->getPath()).getModifiedTime().getTimeFromEpoch());
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((time_t)mtime,
|
||||
File(entries[3]->getPath()).getModifiedTime().getTime());
|
||||
CPPUNIT_ASSERT_EQUAL(
|
||||
(time_t)mtime,
|
||||
File(entries[3]->getPath()).getModifiedTime().getTimeFromEpoch());
|
||||
|
||||
CPPUNIT_ASSERT((time_t)mtime !=
|
||||
File(entries[2]->getPath()).getModifiedTime().getTime());
|
||||
CPPUNIT_ASSERT(
|
||||
(time_t)mtime !=
|
||||
File(entries[2]->getPath()).getModifiedTime().getTimeFromEpoch());
|
||||
}
|
||||
|
||||
void MultiDiskAdaptorTest::testWriteCache()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue