Fix adt-tests: remove UpdaterLogicTest
Also reverts UpdaterLogic as package-private and adds some javadoc to it. SDK BUG 2179267 Change-Id: I19644cc4c99ac70598f3cbcfface2f19d9999931
This commit is contained in:
@@ -68,7 +68,6 @@ fi
|
||||
DEST=$BASE/unittests/com/android
|
||||
cpdir $DEST development/tools/ddms/libs/ddmlib/tests/src/com/android/ddmlib
|
||||
cpdir $DEST development/tools/sdkmanager/libs/sdklib/tests/com/android/sdklib
|
||||
cpdir $DEST development/tools/sdkmanager/libs/sdkuilib/tests/com/android/sdkuilib
|
||||
|
||||
DEST=$BASE/unittests/com/android/layoutlib
|
||||
mkdir -p $DEST
|
||||
|
||||
@@ -29,10 +29,24 @@ import com.android.sdklib.internal.repository.Package.UpdateInfo;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
public /* public for continuous tests */ class UpdaterLogic {
|
||||
/**
|
||||
* The logic to compute which packages to install, based on the choices
|
||||
* made by the user. This adds dependent packages as needed.
|
||||
* <p/>
|
||||
* When the user doesn't provide a selection, looks at local package to find
|
||||
* those that can be updated and compute dependencies too.
|
||||
*/
|
||||
class UpdaterLogic {
|
||||
|
||||
private RepoSources mSources;
|
||||
|
||||
/**
|
||||
* Compute which packages to install by taking the user selection
|
||||
* and adding dependent packages as needed.
|
||||
*
|
||||
* When the user doesn't provide a selection, looks at local package to find
|
||||
* those that can be updated and compute dependencies too.
|
||||
*/
|
||||
public ArrayList<ArchiveInfo> computeUpdates(
|
||||
Collection<Archive> selectedArchives,
|
||||
RepoSources sources,
|
||||
|
||||
Reference in New Issue
Block a user