DO NOT MERGE Stricter NetworkNotificationManagerTest

am: 3cb1d2b45d

Change-Id: I94ea5c6994d181e730ec4f49e98001eb81ed8740
This commit is contained in:
Hugo Benichi
2016-12-20 06:49:08 +00:00
committed by android-build-merger
2 changed files with 2 additions and 1 deletions

View File

@@ -182,7 +182,7 @@ public class NetworkNotificationManager {
details = r.getString(R.string.network_switch_metered_detail, toTransport,
fromTransport);
} else {
Slog.wtf(TAG, "Unknown notification type " + notifyType + "on network transport "
Slog.wtf(TAG, "Unknown notification type " + notifyType + " on network transport "
+ getTransportName(transportType));
return;
}

View File

@@ -80,6 +80,7 @@ public class NetworkNotificationManagerTest extends TestCase {
when(mCtx.getResources()).thenReturn(mResources);
when(mCtx.getPackageManager()).thenReturn(mPm);
when(mCtx.getApplicationInfo()).thenReturn(new ApplicationInfo());
when(mNetworkInfo.getExtraInfo()).thenReturn("extra");
when(mResources.getColor(anyInt(), any())).thenReturn(0xFF607D8B);
mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager);