mirror of
https://github.com/ModOrganizer2/modorganizer-bsapacker.git
synced 2026-07-27 14:06:14 -07:00
Added ArchiveAutoService test
This commit is contained in:
@@ -1,22 +1,15 @@
|
||||
#ifndef ARCHIVEAUTOSERVICE_H
|
||||
#define ARCHIVEAUTOSERVICE_H
|
||||
|
||||
#include <bsapacker/IModDto.h>
|
||||
#include "bsapacker_global.h"
|
||||
#include <bsapacker/IArchiveAutoService.h>
|
||||
#include <qlibbsarch/BSArchiveAuto.h>
|
||||
|
||||
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
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
#include <bsapacker/ArchiveAutoService.h>
|
||||
|
||||
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();
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user