Use bzl files from rules_cc repo in unit tests

This is in preparation for incompatible_use_cc_configure_from_rules_cc (https://github.com/bazelbuild/bazel/issues/10134). This PR updates the rules_cc pin in the WORKSPACE file (which also affects which version Bazel bundles in the binary) to get the right files.

Closes #10192.

PiperOrigin-RevId: 279885451
diff --git a/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java b/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java
index f5a330c..6b64869 100644
--- a/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java
+++ b/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java
@@ -105,9 +105,19 @@
   public static final String TOOLS_REPOSITORY = "@bazel_tools";
   /** The file path in which to create files so that they end up under {@link #TOOLS_REPOSITORY}. */
   public static final String TOOLS_REPOSITORY_SCRATCH = "/bazel_tools_workspace/";
+
   /** The output file path prefix for tool file dependencies. */
   public static final String TOOLS_REPOSITORY_PATH_PREFIX = "external/bazel_tools/";
 
+  /** Repository label prefix for rules_cc. */
+  public static final String RULES_CC_REPOSITORY = "@rules_cc//";
+  /**
+   * The file path in which to create files so that they end up under {@link #RULES_CC_REPOSITORY}.
+   */
+  public static final String RULES_CC_REPOSITORY_SCRATCH = "/rules_cc_workspace/";
+  /** The directory in which rules_cc repo resides in execroot. */
+  public static final String RULES_CC_REPOSITORY_EXECROOT = "external/rules_cc/";
+
   public static final ImmutableList<String> DOCS_RULES_PATHS = ImmutableList.of(
       "src/main/java/com/google/devtools/build/lib/rules");