am 31d0121f: Fix adt-tests: remove UpdaterLogicTest

Merge commit '31d0121f684fbd5eba4c9ad612b850732b659f40' into eclair-mr2

* commit '31d0121f684fbd5eba4c9ad612b850732b659f40':
  Fix adt-tests: remove UpdaterLogicTest
This commit is contained in:
Raphael
2009-10-09 16:26:56 -07:00
committed by Android Git Automerger
2 changed files with 15 additions and 2 deletions

View File

@@ -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

View File

@@ -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,