[Test Week] Add ViewCacheTest

Number of new tested methods: 3

Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I235ba375db12b9f3fac6f204018b32e692835eab
This commit is contained in:
Fengjiang Li
2024-07-15 16:48:24 -07:00
parent 72c4ebed6c
commit 7c8f90f04a
2 changed files with 93 additions and 1 deletions
@@ -21,6 +21,8 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.VisibleForTesting;
import com.android.launcher3.R;
/**
@@ -67,7 +69,8 @@ public class ViewCache {
}
}
private static class CacheEntry {
@VisibleForTesting
static class CacheEntry {
final int mMaxSize;
final View[] mViews;