mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-02-04 20:21:57 -05:00
fix index update progress using simplified ProgressListener
The Event class is no longer needed once there is specific ProgressListener instances for each type of progress update. The sourceUrl serves as the unique ID, like with DownloaderService and InstallManagerService. fixes #633 https://gitlab.com/fdroid/fdroidclient/issues/633
This commit is contained in:
@@ -30,7 +30,7 @@ import java.util.UUID;
|
||||
|
||||
@SuppressWarnings("PMD") // TODO port this to JUnit 4 semantics
|
||||
public class MultiRepoUpdaterTest extends InstrumentationTestCase {
|
||||
private static final String TAG = "RepoUpdaterTest";
|
||||
private static final String TAG = "MultiRepoUpdaterTest";
|
||||
|
||||
private static final String REPO_MAIN = "Test F-Droid repo";
|
||||
private static final String REPO_ARCHIVE = "Test F-Droid repo (Archive)";
|
||||
@@ -406,7 +406,7 @@ public class MultiRepoUpdaterTest extends InstrumentationTestCase {
|
||||
private RepoUpdater createUpdater(String name, Context context) {
|
||||
Repo repo = new Repo();
|
||||
repo.signingCertificate = PUB_KEY;
|
||||
repo.address = UUID.randomUUID().toString();
|
||||
repo.address = "https://fake.url/" + UUID.randomUUID().toString() + "/fdroid/repo";
|
||||
repo.name = name;
|
||||
|
||||
ContentValues values = new ContentValues(2);
|
||||
|
||||
@@ -31,6 +31,7 @@ public class RepoUpdaterTest {
|
||||
context = instrumentation.getContext();
|
||||
testFilesDir = TestUtils.getWriteableDir(instrumentation);
|
||||
Repo repo = new Repo();
|
||||
repo.address = "https://fake.url/fdroid/repo";
|
||||
repo.signingCertificate = this.simpleIndexSigningCert;
|
||||
repoUpdater = new RepoUpdater(context, repo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user