Compare commits
2 Commits
707feacc6c
...
0ddc714750
Author | SHA1 | Date | |
---|---|---|---|
0ddc714750 | |||
c0d855de89 |
@ -21,17 +21,14 @@
|
||||
*/
|
||||
#include "test_common.hpp"
|
||||
|
||||
#include "platform/platform.hpp"
|
||||
#include "utils/common.hpp"
|
||||
#include "utils/file_utils.hpp"
|
||||
#include "utils/string.hpp"
|
||||
#include "utils/utils.hpp"
|
||||
#include "providers/s3/s3_provider.hpp"
|
||||
#include "utils/file.hpp"
|
||||
|
||||
namespace repertory {
|
||||
#if defined(_WIN32)
|
||||
TEST(utils, convert_api_date) {
|
||||
LARGE_INTEGER li{};
|
||||
li.QuadPart = utils::convert_api_date("2009-10-12T17:50:30.111Z");
|
||||
li.QuadPart = s3_provider::convert_api_date("2009-10-12T17:50:30.111Z");
|
||||
|
||||
SYSTEMTIME st{};
|
||||
FileTimeToSystemTime(reinterpret_cast<FILETIME *>(&li), &st);
|
||||
@ -48,10 +45,10 @@ TEST(utils, convert_api_date) {
|
||||
EXPECT_EQ(20, lt.wSecond);
|
||||
EXPECT_EQ(111, lt.wMilliseconds);
|
||||
}
|
||||
#endif
|
||||
#endif // defined(_WIN32)
|
||||
|
||||
// TEST(utils, generate_sha256) {
|
||||
// const auto res = utils::file::generate_sha256(__FILE__);
|
||||
// std::cout << res << std::endl;
|
||||
// }
|
||||
TEST(utils, generate_sha256) {
|
||||
auto res = utils::file::file{__FILE__}.sha256();
|
||||
std::cout << res << std::endl;
|
||||
}
|
||||
} // namespace repertory
|
||||
|
Reference in New Issue
Block a user