Home
last modified time | relevance | path

Searched refs:mLowpanInterfaceService (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/lowpan/tests/src/android/net/lowpan/
DLowpanManagerTest.java47 @Mock ILowpanInterface mLowpanInterfaceService; field in LowpanManagerTest
79 when(mLowpanService.getInterface("wpan0")).thenReturn(mLowpanInterfaceService); in testGetInterfaceList()
80 when(mLowpanInterfaceService.getName()).thenReturn("wpan0"); in testGetInterfaceList()
81 when(mLowpanInterfaceService.asBinder()).thenReturn(mLowpanInterfaceBinder); in testGetInterfaceList()
91 when(mLowpanInterfaceService.getName()).thenReturn("wpan0"); in testRegisterCallback()
92 when(mLowpanInterfaceService.asBinder()).thenReturn(mLowpanInterfaceBinder); in testRegisterCallback()
107 mManagerListener.onInterfaceAdded(mLowpanInterfaceService); in testRegisterCallback()
121 assertEquals(mLowpanInterface.getService(), mLowpanInterfaceService); in testRegisterCallback() local
126 when(mLowpanService.getInterface("wpan0")).thenReturn(mLowpanInterfaceService); in testRegisterCallback()
130 mManagerListener.onInterfaceRemoved(mLowpanInterfaceService); in testRegisterCallback()
[all …]
DLowpanInterfaceTest.java45 @Mock ILowpanInterface mLowpanInterfaceService; field in LowpanInterfaceTest
62 when(mLowpanInterfaceService.getName()).thenReturn("wpan0"); in setUp()
63 when(mLowpanInterfaceService.asBinder()).thenReturn(mLowpanInterfaceBinder); in setUp()
66 new LowpanInterface(mContext, mLowpanInterfaceService, mTestLooper.getLooper()); in setUp()
75 verify(mLowpanInterfaceService) in testStateChangedCallback()