Skip to content

Commit

Permalink
snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellandau committed Jan 7, 2025
1 parent 312d49a commit 219d0f0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/test_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@

TEST(os, get_file_date_ads) {

const std::string mainStreamName = "minizip_ads_test";
const std::string adsName = mainStreamName + ":ads";
const std::string adsContents = "Alternate Data Stream";
const std::string main_stream_name = "minizip_ads_test";
const std::string ads_name = main_stream_name + ":ads";
const std::string ads_contents = "Alternate Data Stream";

// Create main stream
std::ofstream mainStream(mainStreamName);
mainStream.close();
std::ofstream main_stream(main_stream_name);
main_stream.close();

// Attach ADS
std::ofstream ads(adsName);
ads << adsContents;
std::ofstream ads(ads_name);
ads << ads_contents;
ads.close();

// Get file date
time_t modified_date = 0;
time_t accessed_date = 0;
time_t creation_date = 0;

EXPECT_EQ(MZ_OK, mz_os_get_file_date(adsName.c_str(), &modified_date, &accessed_date, &creation_date));
EXPECT_EQ(MZ_OK, mz_os_get_file_date(ads_name.c_str(), &modified_date, &accessed_date, &creation_date));

std::remove(mainStreamName.c_str());
std::remove(main_stream_name.c_str());

ASSERT_GT(modified_date, 0);
ASSERT_GT(accessed_date, 0);
Expand Down

0 comments on commit 219d0f0

Please sign in to comment.