media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/MediaSessionCompatCallbackTest.java
@Test
    @SmallTest
    public void testSetCallbackWithNull() throws Exception {
        mSession.setActive(true);
        mCallback.reset(1);
        callTransportControlsMethod(PLAY, null, getContext(), mSession.getSessionToken());
        mSession.setCallback(null, mHandler);
        mCallback.await(WAIT_TIME_FOR_NO_RESPONSE_MS);
        assertEquals("Callback shouldn't be called.", 0, mCallback.mOnPlayCalledCount);
    }
/**
     * Tests {@link MediaSessionCompat#setCallback} with {@code null}.
     * No callback should be called once {@code setCallback(null)} is done.
     */
Tests  MediaSessionCompat#setCallback with  null.
No callback should be called once  setCallback(null) is done.
Tests MediaSessionCompat#setCallback with null . No callback should be called once setCallback ( null ) is done .
@Test
    @SmallTest
    public void testSetCallbackWithNull() throws Exception {
        mSession.setActive(true);
        mCallback.reset(1);
        callTransportControlsMethod(PLAY, null, getContext(), mSession.getSessionToken());
        mSession.setCallback(null, mHandler);
        mCallback.await(WAIT_TIME_FOR_NO_RESPONSE_MS);
        assertEquals("Callback shouldn't be called.", 0, mCallback.mOnPlayCalledCount);
    }
@ Test @ SmallTest public void testSetCallbackWithNull ( ) throws Exception { mSession . setActive ( true ) ; mCallback . reset ( 1 ) ; callTransportControlsMethod ( PLAY , null , getContext ( ) , mSession . getSessionToken ( ) ) ; mSession . setCallback ( null , mHandler ) ; mCallback . await ( WAIT_TIME_FOR_NO_RESPONSE_MS ) ; assertEquals ( "Callback shouldn't be called." , 0 , mCallback . mOnPlayCalledCount ) ; }
Tests {@link MediaSessionCompat#setCallback} with {@code null}.
Tests { @link MediaSessionCompat#setCallback } with { @code null } .