1
0

Upload manager changes

This commit is contained in:
Scott E. Graves
2017-02-25 12:42:37 -06:00
parent 6135c1ffc9
commit 39dcd63279
4 changed files with 299 additions and 18 deletions

View File

@@ -127,21 +127,28 @@ namespace UnitTests
Assert::IsTrue(_eventAccumulator.WaitForEvent<NewUploadAdded>(5000));
Assert::IsTrue(_eventAccumulator.WaitForEvent<CreatingTemporarySiaDriveFile>(5000));
Assert::IsTrue(_eventAccumulator.WaitForEvent<RenamingTemporarySiaDriveFile>(5000));
Assert::IsTrue(_eventAccumulator.WaitForEvent<UploadAddedToQueue>(5000));
Assert::IsFalse(_eventAccumulator.Contains<DeleteSiaDriveFileFailed>());
Assert::IsFalse(_eventAccumulator.Contains<RenamingTemporarySiaDriveFileFailed>());
Assert::IsFalse(_eventAccumulator.Contains<DeleteTemporarySiaDriveFileFailed>());
Assert::IsFalse(_eventAccumulator.Contains<CreatingTemporarySiaDriveFileFailed>());
Assert::IsFalse(_eventAccumulator.Contains<CreatingTemporarySiaDriveFileFailed>());
Assert::IsFalse(_eventAccumulator.Contains<QueueUploadFailed>());
Assert::IsFalse(_eventAccumulator.Contains<ExistingUploadFound>());
Assert::IsTrue(uploadManager.GetUploadStatus(L"/test1/test.rtf") == UploadStatus::Queued);
}
catch (SQLite::Exception e)
{
siad->Stop();
CEventSystem::EventSystem.Stop();
_eventAccumulator.Clear();
Assert::Fail(CA2W(e.getErrorStr()));
}
siad->Stop();
CEventSystem::EventSystem.Stop();
_eventAccumulator.Clear();
}
};