From a99b90b24f84c4ffb82504face25caf9ea533c17 Mon Sep 17 00:00:00 2001 From: Eric Schwarzenbach Date: Fri, 13 Oct 2017 09:19:03 -0700 Subject: [PATCH] Remove WifiNetworkScoreCache fake Now that robolectric supports O, we no longer need the fake WifiNetworkScoreCache for tests. Bug: 64262653 Test: n/a Change-Id: Ie9cdd817d3436b7ff5b1642efbf255faf216a7fb --- .../net/wifi/WifiNetworkScoreCache.java | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 packages/SettingsLib/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java diff --git a/packages/SettingsLib/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java b/packages/SettingsLib/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java deleted file mode 100644 index abccd8d7ed9e2..0000000000000 --- a/packages/SettingsLib/tests/robotests/src/android/net/wifi/WifiNetworkScoreCache.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2017 Google Inc. - * - * 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.net.wifi; - -import android.content.Context; -import android.os.Handler; - -import java.util.List; - -/** - * Will be removed once robolectric is updated to O - */ -public class WifiNetworkScoreCache { - - public WifiNetworkScoreCache(Context context, WifiNetworkScoreCache.CacheListener listener) { - } - - public abstract static class CacheListener { - public CacheListener(Handler handler) { - } - - void post(List updatedNetworks) { - } - - public abstract void networkCacheUpdated(List updatedNetworks); - } -}