Move JNI tests out of OSS.

PiperOrigin-RevId: 934458864
Change-Id: I9419a97237f93a96af67878a1ec9452972b0aeb4
diff --git a/test/rules/android_local_test/java/com/starlark_resources/BUILD b/test/rules/android_local_test/java/com/starlark_resources/BUILD
index be63334..6fd487e 100644
--- a/test/rules/android_local_test/java/com/starlark_resources/BUILD
+++ b/test/rules/android_local_test/java/com/starlark_resources/BUILD
@@ -1,7 +1,5 @@
 # Tests that run on head android_local_test rule to verify Starlark resource processing pipeline.
 
-load("@rules_cc//cc:cc_library.bzl", "cc_library")
-load("//mobile/build:build_defs.bzl", "android_jni_library")
 load(
     "//rules:rules.bzl",
     "android_library",
@@ -192,37 +190,3 @@
         "@rules_android_maven//:org_robolectric_robolectric",
     ],
 )
-
-cc_library(
-    name = "jni_test_cc_lib",
-    testonly = True,
-    srcs = ["jni_test.cc"],
-    deps = [
-        "@local_jdk//:bin/java:jni",
-    ],
-)
-
-android_jni_library(
-    name = "jni_test_lib",
-    testonly = True,
-    binary_name = "libjni_test.so",
-    deps = [
-        ":jni_test_cc_lib",
-    ],
-)
-
-android_local_test(
-    name = "jni_aspect_regression_test",
-    srcs = [
-        "JniAspectRegressionTest.java",
-        "JniTestLib.java",
-    ],
-    manifest = "AndroidManifest.xml",
-    test_class = "com.starlark_resources.JniAspectRegressionTest",
-    deps = [
-        ":jni_test_lib",
-        "//java/com/google/thirdparty/robolectric",
-        "//third_party/java/robolectric",
-        "@rules_android_maven//:junit_junit",
-    ],
-)
diff --git a/test/rules/android_local_test/java/com/starlark_resources/JniAspectRegressionTest.java b/test/rules/android_local_test/java/com/starlark_resources/JniAspectRegressionTest.java
deleted file mode 100644
index 1f9b4cc..0000000
--- a/test/rules/android_local_test/java/com/starlark_resources/JniAspectRegressionTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2026 The Bazel Authors. All rights reserved.
- *
- * 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.starlark_resources;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.robolectric.RobolectricTestRunner;
-
-@RunWith(RobolectricTestRunner.class)
-public final class JniAspectRegressionTest {
-  @Test
-  public void testJniLoading() {
-    assertEquals(5, JniTestLib.add(2, 3));
-  }
-}
diff --git a/test/rules/android_local_test/java/com/starlark_resources/JniTestLib.java b/test/rules/android_local_test/java/com/starlark_resources/JniTestLib.java
deleted file mode 100644
index 93c57aa..0000000
--- a/test/rules/android_local_test/java/com/starlark_resources/JniTestLib.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright 2026 The Bazel Authors. All rights reserved.
- *
- * 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.starlark_resources;
-
-public final class JniTestLib {
-  static {
-    System.loadLibrary("jni_test");
-  }
-
-  public static native int add(int a, int b);
-}
diff --git a/test/rules/android_local_test/java/com/starlark_resources/jni_test.cc b/test/rules/android_local_test/java/com/starlark_resources/jni_test.cc
deleted file mode 100644
index 4d444c4..0000000
--- a/test/rules/android_local_test/java/com/starlark_resources/jni_test.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright 2026 The Bazel Authors. All rights reserved.
- *
- * 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.
- */
-
-#include <jni.h>
-
-extern "C" JNIEXPORT jint JNICALL Java_com_starlark_1resources_JniTestLib_add(
-    JNIEnv* env, jclass clazz, jint a, jint b) {
-  return a + b;
-}