Skip to content

Commit 52fdd8d

Browse files
committed
Merge remote-tracking branch 'origin/dev/v3.17.x.x'
2 parents 6706b35 + a47bead commit 52fdd8d

22 files changed

+1794
-1175
lines changed

Assets/Editor/Tests/Pack1UnarchiverTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ public void Unpack()
3030
string metaPath = TestFixtures.GetFilePath("pack1/test.pack1.meta");
3131
string metaString = File.ReadAllText(metaPath);
3232
Pack1Meta meta = Pack1Meta.Parse(metaString);
33-
34-
MapHashExtractedFiles mapHashExtractedFiles = new MapHashExtractedFiles();
35-
var pack1Unarchiver = new Pack1Unarchiver(archivePath, meta, _tempDir, mapHashExtractedFiles, Key);
33+
34+
var pack1Unarchiver = new Pack1Unarchiver(archivePath, meta, _tempDir, Key);
3635
pack1Unarchiver.Unarchive(new CancellationToken());
3736

3837
Assert.True(Directory.Exists(Path.Combine(_tempDir, "dir")));

Assets/Editor/Tests/UnarchiverTest.cs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ private void CheckConsistency(string sourceDirPath, string dirPath)
5353
[Test]
5454
public void Unarchive()
5555
{
56-
MapHashExtractedFiles mapHashExtractedFiles = new MapHashExtractedFiles();
57-
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/zip.zip"), _dirPath, mapHashExtractedFiles);
56+
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/zip.zip"), _dirPath);
5857

5958
unarchiver.Unarchive(CancellationToken.Empty);
6059

@@ -64,8 +63,7 @@ public void Unarchive()
6463
[Test]
6564
public void CancelUnarchive()
6665
{
67-
MapHashExtractedFiles mapHashExtractedFiles = new MapHashExtractedFiles();
68-
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/zip.zip"), _dirPath, mapHashExtractedFiles);
66+
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/zip.zip"), _dirPath);
6967

7068
CancellationTokenSource source = new CancellationTokenSource();
7169
source.Cancel();
@@ -76,8 +74,7 @@ public void CancelUnarchive()
7674
[Test]
7775
public void UnarchiveCorruptedArchive()
7876
{
79-
MapHashExtractedFiles mapHashExtractedFiles = new MapHashExtractedFiles();
80-
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/corrupted-zip.zip"), _dirPath, mapHashExtractedFiles);
77+
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/corrupted-zip.zip"), _dirPath);
8178

8279
Assert.That(() => unarchiver.Unarchive(CancellationToken.Empty), Throws.Exception);
8380
}
@@ -86,9 +83,8 @@ public void UnarchiveCorruptedArchive()
8683
public void UnarchiveWithPassword()
8784
{
8885
string password = "\x08\x07\x18\x24" + "123==";
89-
90-
MapHashExtractedFiles mapHashExtractedFiles = new MapHashExtractedFiles();
91-
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/password-zip.zip"), _dirPath, mapHashExtractedFiles, password);
86+
87+
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/password-zip.zip"), _dirPath, password);
9288

9389
unarchiver.Unarchive(CancellationToken.Empty);
9490

@@ -98,8 +94,7 @@ public void UnarchiveWithPassword()
9894
[Test]
9995
public void ProgressReporting()
10096
{
101-
MapHashExtractedFiles mapHashExtractedFiles = new MapHashExtractedFiles();
102-
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/zip.zip"), _dirPath, mapHashExtractedFiles);
97+
var unarchiver = new ZipUnarchiver(TestFixtures.GetFilePath("unarchiver-test/zip.zip"), _dirPath);
10398

10499
int? lastAmount = null;
105100
int? lastEntry = null;

0 commit comments

Comments
 (0)