@Test public void testSendCapabilities_NoAgent() { mProxyNetworkAgent.mCurrentNetworkAgent = null; mProxyNetworkAgent.sendCapabilities(mockCapabilities); verify(mockNetworkAgent, never()).sendNetworkCapabilities(mockCapabilities); }
@MainThread protected void sendCapabilities(final NetworkCapabilities capabilities) { DebugAssert.isMainThread(); if (mCurrentNetworkAgent != null) { mCurrentNetworkAgent.sendNetworkCapabilities(capabilities); } else { Log.w(TAG, "Send capabilities with no network agent"); } }
ProxyNetworkAgent { @MainThread protected void sendCapabilities(final NetworkCapabilities capabilities) { DebugAssert.isMainThread(); if (mCurrentNetworkAgent != null) { mCurrentNetworkAgent.sendNetworkCapabilities(capabilities); } else { Log.w(TAG, "Send capabilities with no network agent"); } } }
ProxyNetworkAgent { @MainThread protected void sendCapabilities(final NetworkCapabilities capabilities) { DebugAssert.isMainThread(); if (mCurrentNetworkAgent != null) { mCurrentNetworkAgent.sendNetworkCapabilities(capabilities); } else { Log.w(TAG, "Send capabilities with no network agent"); } } protected  ProxyNetworkAgent(
            @NonNull final Context context,
            @NonNull final NetworkCapabilities capabilities,
            @NonNull final ProxyLinkProperties proxyLinkProperties); }
ProxyNetworkAgent { @MainThread protected void sendCapabilities(final NetworkCapabilities capabilities) { DebugAssert.isMainThread(); if (mCurrentNetworkAgent != null) { mCurrentNetworkAgent.sendNetworkCapabilities(capabilities); } else { Log.w(TAG, "Send capabilities with no network agent"); } } protected  ProxyNetworkAgent(
            @NonNull final Context context,
            @NonNull final NetworkCapabilities capabilities,
            @NonNull final ProxyLinkProperties proxyLinkProperties); @AnyThread void dump(@NonNull final IndentingPrintWriter ipw); }
ProxyNetworkAgent { @MainThread protected void sendCapabilities(final NetworkCapabilities capabilities) { DebugAssert.isMainThread(); if (mCurrentNetworkAgent != null) { mCurrentNetworkAgent.sendNetworkCapabilities(capabilities); } else { Log.w(TAG, "Send capabilities with no network agent"); } } protected  ProxyNetworkAgent(
            @NonNull final Context context,
            @NonNull final NetworkCapabilities capabilities,
            @NonNull final ProxyLinkProperties proxyLinkProperties); @AnyThread void dump(@NonNull final IndentingPrintWriter ipw);  }