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