File tree 1 file changed +5
-0
lines changed
android/sdl_android/src/androidTest/java/com/smartdevicelink/transport
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .smartdevicelink .transport ;
2
2
3
+ import android .Manifest ;
3
4
import android .content .ComponentName ;
4
5
import android .os .Looper ;
5
6
6
7
import androidx .test .ext .junit .runners .AndroidJUnit4 ;
8
+ import androidx .test .rule .GrantPermissionRule ;
7
9
8
10
import com .smartdevicelink .protocol .SdlPacket ;
9
11
import com .smartdevicelink .protocol .SdlPacketFactory ;
13
15
import com .smartdevicelink .transport .utl .TransportRecord ;
14
16
15
17
import org .junit .Before ;
18
+ import org .junit .Rule ;
16
19
import org .junit .Test ;
17
20
import org .junit .runner .RunWith ;
18
21
29
32
@ RunWith (AndroidJUnit4 .class )
30
33
public class TransportManagerTests {
31
34
35
+ @ Rule
36
+ public GrantPermissionRule btRuntimePermissionRule = GrantPermissionRule .grant (Manifest .permission .BLUETOOTH_CONNECT );
32
37
MultiplexTransportConfig config ;
33
38
final TransportRecord defaultBtRecord = new TransportRecord (TransportType .BLUETOOTH , "12:34:56:78:90" );
34
39
final ComponentName routerServiceComponentName = new ComponentName ("com.smartdevicelink.test" , "com.smartdevicelink.test.SdlRouterService" );
You can’t perform that action at this time.
0 commit comments