Delete outdated tests
This test no longer works because we make nearby_service from
system_api_service to app_api_service
The APIs are requiring BLUETOOTH_PRIVILEGED permission.
Ignore-AOSP-First: nearby_not_in_aosp_yet
Test: atest NearbyIntegrationUntrustedTests
Fix: 229310677
Change-Id: I91461d9ea16d508549264b8444e28b00ad5b64cd
diff --git a/nearby/tests/integration/untrusted/src/android/nearby/integration/untrusted/NearbyManagerTest.kt b/nearby/tests/integration/untrusted/src/android/nearby/integration/untrusted/NearbyManagerTest.kt
deleted file mode 100644
index aa6aa2a..0000000
--- a/nearby/tests/integration/untrusted/src/android/nearby/integration/untrusted/NearbyManagerTest.kt
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (C) 2022 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 android.nearby.integration.untrusted
-
-import android.content.Context
-import android.nearby.NearbyManager
-import androidx.test.core.app.ApplicationProvider
-import androidx.test.ext.junit.runners.AndroidJUnit4
-import com.google.common.truth.Truth.assertThat
-import org.junit.Test
-import org.junit.runner.RunWith
-
-@RunWith(AndroidJUnit4::class)
-class NearbyManagerTest {
-
- /** Verify untrusted app can't get Nearby service. */
- @Test
- fun testContextGetNearbyService_fromUnTrustedApp_returnsNull() {
- val appContext = ApplicationProvider.getApplicationContext<Context>()
- assertThat(appContext.getSystemService(Context.NEARBY_SERVICE)).isNull()
- }
-}