aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-10-21 12:36:56 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-10-21 14:39:24 +0000
commit5d9b8a0dcf89190edc190f439c383d7bdbae658f (patch)
tree05f4b3c0457ea2c4c0f12ca5861f6baa15d7e908 /src/test/java/com/google/devtools/build
parent59a5c99832a5ddca6b854e1bcd461fd4219147eb (diff)
Remove the repository name from PACKAGE_NAME and move it to the new REPOSITORY_NAME symbol.
-- MOS_MIGRATED_REVID=105954652
Diffstat (limited to 'src/test/java/com/google/devtools/build')
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/util/PackageFactoryApparatus.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/packages/util/PackageFactoryApparatus.java b/src/test/java/com/google/devtools/build/lib/packages/util/PackageFactoryApparatus.java
index 2cb842c63c..4b1283e517 100644
--- a/src/test/java/com/google/devtools/build/lib/packages/util/PackageFactoryApparatus.java
+++ b/src/test/java/com/google/devtools/build/lib/packages/util/PackageFactoryApparatus.java
@@ -71,21 +71,21 @@ public class PackageFactoryApparatus {
/**
* Parses and evaluates {@code buildFile} and returns the resulting {@link Package} instance.
*/
- public Package createPackage(String packageName, Path buildFile)
- throws Exception {
- return createPackage(packageName, buildFile, eventHandler);
+ public Package createPackage(String packageName, Path buildFile) throws Exception {
+ return createPackage(PackageIdentifier.createInDefaultRepo(packageName), buildFile,
+ eventHandler);
}
/**
- * Parses and evaluates {@code buildFile} with custom {@code eventHandler} and returns the resulting
- * {@link Package} instance.
+ * Parses and evaluates {@code buildFile} with custom {@code eventHandler} and returns the
+ * resulting {@link Package} instance.
*/
- public Package createPackage(String packageName, Path buildFile, EventHandler reporter)
- throws Exception {
+ public Package createPackage(PackageIdentifier packageIdentifier, Path buildFile,
+ EventHandler reporter) throws Exception {
try {
Package pkg =
factory.createPackageForTesting(
- PackageIdentifier.createInDefaultRepo(packageName),
+ packageIdentifier,
buildFile,
getPackageLocator(),
reporter);