blob: 53451f16f2945e7cc11a73220364130861f2fba6 [file] [log] [blame]
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.cts.tradefed.testtype;
import java.util.Collection;
/**
* Interface for accessing tests from the CTS repository.
*/
public interface ITestPackageRepo {
/**
* Get a {@link TestPackageDef} given a uri
*
* @param testUri the string uris
* @return a {@link TestPackageDef} or <code>null</code> if the uri cannot be found in repo
*/
public ITestPackageDef getTestPackage(String testUri);
/**
* Attempt to find the package uri for a given test class name
*
* @param testClassName the test class name
* @return the package uri or <code>null</code> if the package cannot be found
*/
public String findPackageForTest(String testClassName);
/**
* Return a sorted {@link Collection} of all package names found in repo.
*/
public Collection<String> getPackageNames();
}