Refactor: Replace hardcoded file paths with fastFilePath in testFactory() methods.
This commit is contained in:
parent
ba83aa5247
commit
ccb956a834
@ -116,7 +116,7 @@ void AutoTest_COD10_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD10";
|
||||
|
||||
@ -116,7 +116,7 @@ void AutoTest_COD11_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD11";
|
||||
|
||||
@ -209,7 +209,7 @@ void AutoTest_COD12_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD12";
|
||||
|
||||
@ -113,7 +113,7 @@ void AutoTest_COD4_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD4";
|
||||
|
||||
@ -117,7 +117,7 @@ void AutoTest_COD5_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD5";
|
||||
|
||||
@ -109,7 +109,7 @@ void AutoTest_COD6_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD6";
|
||||
|
||||
@ -116,7 +116,7 @@ void AutoTest_COD7_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD7";
|
||||
|
||||
@ -116,7 +116,7 @@ void AutoTest_COD8_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD8";
|
||||
|
||||
@ -116,7 +116,7 @@ void AutoTest_COD9_PC::testFactory() {
|
||||
|
||||
const QString testName = "Factory ingest: " + fastFilePath;
|
||||
|
||||
FastFile* fastFile = FastFileFactory::Create(fastFilePath);
|
||||
FastFile* fastFile = FastFile::Open(fastFilePath);
|
||||
|
||||
const QString game = fastFile->GetGame();
|
||||
bool correctGame = game == "COD9";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user