const refactor

This commit is contained in:
2024-07-17 13:53:56 -05:00
parent 26fa85e421
commit c7318b0383
21 changed files with 132 additions and 142 deletions

View File

@@ -47,7 +47,7 @@ protected:
void SetUp() override {
if (PROVIDER_INDEX != 0) {
if (PROVIDER_INDEX == 1) {
#if defined(REPERTORY_ENABLE_S3)
#if defined(PROJECT_ENABLE_S3)
EXPECT_TRUE(utils::file::delete_directory_recursively(
"./winfsp_test" + std::to_string(PROVIDER_INDEX)));

View File

@@ -535,7 +535,7 @@ TEST(fuse_drive, all_tests) {
switch (idx) {
case 0U: {
#if defined(REPERTORY_ENABLE_S3)
#if defined(PROJECT_ENABLE_S3)
config_ptr =
std::make_unique<app_config>(provider_type::s3, cfg_directory);
{

View File

@@ -668,7 +668,7 @@ TEST(providers, encrypt_provider) {
event_system::instance().stop();
}
#if defined(REPERTORY_ENABLE_S3) && defined(REPERTORY_ENABLE_S3_TESTING)
#if defined(PROJECT_ENABLE_S3)
TEST(providers, s3_provider) {
const auto config_path =
utils::path::combine(get_test_dir(), {"s3_provider"});

View File

@@ -333,7 +333,7 @@ TEST_F(winfsp_test, all_tests) {
return;
}
#if !defined(REPERTORY_ENABLE_S3)
#if !defined(PROJECT_ENABLE_S3)
if (PROVIDER_INDEX == 1U) {
return;
}