Skip to content

Commit

Permalink
Remove unused test constants.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 702362431
Change-Id: Ic7cbb7b25d8b27e415c87235ab79c84a9f915d1f
  • Loading branch information
katre authored and copybara-github committed Dec 3, 2024
1 parent 05d1329 commit e3e0356
Showing 1 changed file with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@
* Various constants required by the tests.
*/
public class TestConstants {

public static final String PROTO_TOOLCHAIN = "@com_google_protobuf//bazel/private:proto_toolchain_type";
private TestConstants() {}

public static final String LOAD_PROTO_LANG_TOOLCHAIN =
"load('@com_google_protobuf//bazel/toolchains:proto_lang_toolchain.bzl', 'proto_lang_toolchain')";

private TestConstants() {
}

public static final String PRODUCT_NAME = "bazel";

/**
Expand All @@ -53,11 +49,6 @@ private TestConstants() {
*/
public static final String WORKSPACE_NAME = "_main";

/**
* Legacy default workspace name.
*/
public static final String LEGACY_WORKSPACE_NAME = "__main__";

/**
* Name of a class with an INSTANCE field of type AnalysisMock to be used for analysis tests.
*/
Expand Down Expand Up @@ -116,9 +107,6 @@ private TestConstants() {
/** The file path in which to create files so that they end up under {@link #TOOLS_REPOSITORY}. */
public static final String TOOLS_REPOSITORY_SCRATCH = "embedded_tools/";

/** The output file path prefix for tool file dependencies. */
public static final String TOOLS_REPOSITORY_PATH_PREFIX = "external/bazel_tools/";

/** The directory in which rules_cc repo resides in execroot. */
public static final String RULES_CC_REPOSITORY_EXECROOT = "external/" + RulesCcRepoName.CANONICAL_REPO_NAME + "/";
/* Prefix for loads from rules_cc */
Expand All @@ -133,9 +121,6 @@ private TestConstants() {

public static final String PYRUNTIMEINFO_BZL = "@@rules_python+//python/private:py_runtime_info.bzl";

public static final ImmutableList<String> DOCS_RULES_PATHS = ImmutableList.of(
"src/main/java/com/google/devtools/build/lib/rules");

// Constants used to determine how genrule pulls in the setup script.
public static final String GENRULE_SETUP = "@bazel_tools//tools/genrule:genrule-setup.sh";
public static final String GENRULE_SETUP_PATH = "genrule-setup.sh";
Expand Down Expand Up @@ -174,20 +159,6 @@ private TestConstants() {
public static final String PLATFORM_LABEL = "@platforms//host";
public static final String PIII_PLATFORM_LABEL = "@platforms//host:piii";

public static final Label ANDROID_DEFAULT_SDK =
Label.parseCanonicalUnchecked("@bazel_tools//tools/android:sdk");

/** What toolchain type do Android rules use for platform-based toolchain resolution? */
public static final String ANDROID_TOOLCHAIN_TYPE_LABEL =
TOOLS_REPOSITORY + "//tools/android:sdk_toolchain_type";

/** The launcher used by Bazel. */
public static final String LAUNCHER_PATH = "@bazel_tools//tools/launcher:launcher";

/** The target name for ProGuard's allowlister. */
public static final String PROGUARD_ALLOWLISTER_TARGET =
"@bazel_tools//tools/jdk:proguard_whitelister";

/** The java toolchain type. */
public static final String JAVA_TOOLCHAIN_TYPE = "@@bazel_tools//tools/jdk:toolchain_type";

Expand Down

0 comments on commit e3e0356

Please sign in to comment.