socket = mFactory.createSocket(host, port);
assertNotNull(socket);
assertNotNull(socket.getOutputStream());
assertNotNull(socket.getInputStream());
// it throw exception when calling createSocket(String, int, InetAddress, int)
// The socket level is invalid.
}
// a host and port that are expected to be available but have
// a cert with a different CN, in this case CN=mtalk.google.com
private static String TEST_CREATE_SOCKET_HOST = "mobile-gtalk.l.google.com";
private static int TEST_CREATE_SOCKET_PORT = 5228;
public void test_createSocket_simple() throws Exception {
try {
socket = mFactory.createSocket(host, port);
assertNotNull(socket);
assertNotNull(socket.getOutputStream());
assertNotNull(socket.getInputStream());
// it throw exception when calling createSocket(String, int, InetAddress, int)
// The socket level is invalid.
}
// a host and port that are expected to be available but have
// a cert with a different CN, in this case CN=mail.google.com
private static String TEST_CREATE_SOCKET_HOST = "googlemail.com";
private static int TEST_CREATE_SOCKET_PORT = 443;
public void test_createSocket_simple() throws Exception {
try {
https://android-review.googlesource.com/#/c/64102/