diff --git a/src/bsapacker/ArchiveAutoService.h b/src/bsapacker/ArchiveAutoService.h index b84052f..fff57fe 100644 --- a/src/bsapacker/ArchiveAutoService.h +++ b/src/bsapacker/ArchiveAutoService.h @@ -1,22 +1,15 @@ #ifndef ARCHIVEAUTOSERVICE_H #define ARCHIVEAUTOSERVICE_H -#include +#include "bsapacker_global.h" #include -#include namespace BsaPacker { - class ArchiveAutoService : public IArchiveAutoService + class BSAPACKER_EXPORT ArchiveAutoService : public IArchiveAutoService { public: ArchiveAutoService() = default; - ~ArchiveAutoService() override = default; - ArchiveAutoService(const ArchiveAutoService&) = delete; - ArchiveAutoService& operator=(const ArchiveAutoService&) = delete; - ArchiveAutoService(ArchiveAutoService&&) = default; - ArchiveAutoService& operator=(ArchiveAutoService&&) = default; - void CreateBSA(BSArchiveAuto* archive, const QString& archiveName, bsa_archive_type_e type) const override; }; } // namespace BsaPacker diff --git a/tests/ArchiveAutoServiceFacts.cpp b/tests/ArchiveAutoServiceFacts.cpp new file mode 100644 index 0000000..bea73b3 --- /dev/null +++ b/tests/ArchiveAutoServiceFacts.cpp @@ -0,0 +1,26 @@ +#include "gtest/gtest.h" +#include "gmock/gmock.h" + +#include + +using namespace BsaPacker; + +namespace BsaPackerTests +{ + class ArchiveAutoServiceFacts : public ::testing::Test + { + protected: + void SetUp() override { + } + + void TearDown() override { + } + }; + + TEST_F(ArchiveAutoServiceFacts, Ctor_Always_Constructs) + { + EXPECT_NO_THROW( + auto result = ArchiveAutoService(); + ); + } +} \ No newline at end of file