Chromium Code Reviews| Index: webrtc/examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java |
| diff --git a/webrtc/examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java b/webrtc/examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java |
| index 9c72c473118f210b4c502a435723480d42546ad2..d85d307dc48386de4e544bebb8a8a84ca121e2fc 100644 |
| --- a/webrtc/examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java |
| +++ b/webrtc/examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java |
| @@ -62,23 +62,11 @@ public class DirectRTCClientTest { |
| @Test |
| public void testValidIpPattern() { |
| // Strings that should match the pattern. |
| - final String[] ipAddresses = new String[] { |
| - "0.0.0.0", |
| - "127.0.0.1", |
| - "192.168.0.1", |
| - "0.0.0.0:8888", |
| - "127.0.0.1:8888", |
| - "192.168.0.1:8888", |
| - "::", |
| - "::1", |
| - "2001:0db8:85a3:0000:0000:8a2e:0370:7946", |
| - "[::]", |
| - "[::1]", |
| - "[2001:0db8:85a3:0000:0000:8a2e:0370:7946]", |
| - "[::]:8888", |
| - "[::1]:8888", |
| - "[2001:0db8:85a3:0000:0000:8a2e:0370:7946]:8888" |
| - }; |
| + final String[] ipAddresses = |
|
magjed_webrtc
2016/09/28 13:45:05
revert.
|
| + new String[] {"0.0.0.0", "127.0.0.1", "192.168.0.1", "0.0.0.0:8888", "127.0.0.1:8888", |
| + "192.168.0.1:8888", "::", "::1", "2001:0db8:85a3:0000:0000:8a2e:0370:7946", "[::]", |
| + "[::1]", "[2001:0db8:85a3:0000:0000:8a2e:0370:7946]", "[::]:8888", "[::1]:8888", |
| + "[2001:0db8:85a3:0000:0000:8a2e:0370:7946]:8888"}; |
| for (String ip : ipAddresses) { |
| assertTrue(ip + " didn't match IP_PATTERN even though it should.", |
| @@ -89,13 +77,8 @@ public class DirectRTCClientTest { |
| @Test |
| public void testInvalidIpPattern() { |
| // Strings that shouldn't match the pattern. |
| - final String[] invalidIpAddresses = new String[] { |
| - "Hello, World!", |
| - "aaaa", |
| - "1111", |
| - "[hello world]", |
| - "hello:world" |
| - }; |
| + final String[] invalidIpAddresses = |
| + new String[] {"Hello, World!", "aaaa", "1111", "[hello world]", "hello:world"}; |
| for (String invalidIp : invalidIpAddresses) { |
| assertFalse(invalidIp + " matched IP_PATTERN even though it shouldn't.", |
| @@ -121,8 +104,8 @@ public class DirectRTCClientTest { |
| verify(clientEvents, timeout(NETWORK_TIMEOUT)) |
| .onConnectedToRoom(any(AppRTCClient.SignalingParameters.class)); |
| - SessionDescription answerSdp |
| - = new SessionDescription(SessionDescription.Type.ANSWER, DUMMY_SDP); |
| + SessionDescription answerSdp = |
| + new SessionDescription(SessionDescription.Type.ANSWER, DUMMY_SDP); |
| client.sendAnswerSdp(answerSdp); |
| verify(serverEvents, timeout(NETWORK_TIMEOUT)) |
| .onRemoteDescription(isNotNull(SessionDescription.class)); |