diff --git a/growingio-tracker-core/src/test/java/com/growingio/android/sdk/track/utils/UtilsTest.java b/growingio-tracker-core/src/test/java/com/growingio/android/sdk/track/utils/UtilsTest.java index 6d434243..30d0d85f 100644 --- a/growingio-tracker-core/src/test/java/com/growingio/android/sdk/track/utils/UtilsTest.java +++ b/growingio-tracker-core/src/test/java/com/growingio/android/sdk/track/utils/UtilsTest.java @@ -129,8 +129,10 @@ public void networkTest() { Truth.assertThat(state.isMobileData()).isTrue(); Truth.assertThat(state.isConnected()).isTrue(); Truth.assertThat(state.getNetworkName()).isEqualTo("2G"); - Truth.assertThat(NetworkUtil.getNetworkName(ConnectivityManager.TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_CDMA, "Test Network")).isEqualTo("3G"); + Truth.assertThat(NetworkUtil.getNetworkName(ConnectivityManager.TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_CDMA, "Test Network")).isEqualTo("2G"); + Truth.assertThat(NetworkUtil.getNetworkName(ConnectivityManager.TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_TD_SCDMA, "Test Network")).isEqualTo("3G"); Truth.assertThat(NetworkUtil.getNetworkName(ConnectivityManager.TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_LTE, "Test Network")).isEqualTo("4G"); + Truth.assertThat(NetworkUtil.getNetworkName(ConnectivityManager.TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_NR, "Test Network")).isEqualTo("5G"); Truth.assertThat(NetworkUtil.getNetworkName(ConnectivityManager.TYPE_WIFI, TelephonyManager.NETWORK_TYPE_LTE, "Test Network")).isEqualTo("WIFI"); }