Update ConnectivityDiagnosticsCallback function name.
API Council feedback suggests renaming ConnectivityDiagnosticsCallback 'onConnectivityReport' function to be 'onConnectivityReportAvailable'. Bug: 150598997 Test: atest FrameworksNetTests Change-Id: Ieea727ecee6cf358a53a215fd4b06233dfe967ea Merged-In: Ieea727ecee6cf358a53a215fd4b06233dfe967ea
This commit is contained in:
@@ -304,12 +304,12 @@ public class ConnectivityDiagnosticsManagerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConnectivityDiagnosticsCallbackOnConnectivityReport() {
|
||||
mBinder.onConnectivityReport(createSampleConnectivityReport());
|
||||
public void testConnectivityDiagnosticsCallbackOnConnectivityReportAvailable() {
|
||||
mBinder.onConnectivityReportAvailable(createSampleConnectivityReport());
|
||||
|
||||
// The callback will be invoked synchronously by inline executor. Immediately check the
|
||||
// latch without waiting.
|
||||
verify(mCb).onConnectivityReport(eq(createSampleConnectivityReport()));
|
||||
verify(mCb).onConnectivityReportAvailable(eq(createSampleConnectivityReport()));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user