Skip to content

Commit b58cef1

Browse files
committed
fix compilation error
1 parent d27dd18 commit b58cef1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebSocketHandlerTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ public void testStartPlay() throws JSONException {
176176
String token = "token123";
177177
String[] tracks = {"track1", "track2"};
178178
String subscriberId = "subscriber123";
179+
String subscriberName = "subscriberName";
179180
String subscriberCode = "code123";
180181
String viewerInfo = "viewerInfo";
181182

182-
webSocketHandler.startPlay(streamId, token, tracks, subscriberId, subscriberCode, viewerInfo);
183+
webSocketHandler.startPlay(streamId, token, tracks, subscriberId, subscriberName, subscriberCode, viewerInfo, false);
183184

184185
ArgumentCaptor<String> jsonCaptor = ArgumentCaptor.forClass(String.class);
185186
verify(webSocketHandler, times(1)).sendTextMessage(jsonCaptor.capture());
@@ -191,6 +192,7 @@ public void testStartPlay() throws JSONException {
191192
expectedJson.put(WebSocketConstants.TRACK_LIST, new JSONArray(tracks));
192193
expectedJson.put(WebSocketConstants.SUBSCRIBER_ID, subscriberId);
193194
expectedJson.put(WebSocketConstants.SUBSCRIBER_CODE, subscriberCode);
195+
expectedJson.put(WebSocketConstants.SUBSCRIBER_NAME, subscriberName);
194196
expectedJson.put(WebSocketConstants.VIEWER_INFO, viewerInfo);
195197

196198
assertEquals(expectedJson.toString(), jsonCaptor.getValue());

0 commit comments

Comments
 (0)