| Index: components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/HttpUrlRequestFactoryTest.java
|
| diff --git a/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/HttpUrlRequestFactoryTest.java b/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/HttpUrlRequestFactoryTest.java
|
| index 954038d0bc451aa699020c73aff3666623932b67..b8413d7304c1e0e313831ef4d49978f1f1811da8 100644
|
| --- a/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/HttpUrlRequestFactoryTest.java
|
| +++ b/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/HttpUrlRequestFactoryTest.java
|
| @@ -14,7 +14,7 @@ import org.chromium.net.HttpUrlRequestFactoryConfig;
|
| import java.util.regex.Pattern;
|
|
|
| /**
|
| - * Tests for {@link ChunkedWritableByteChannel}
|
| + * Tests for {@link HttpUrlRequestFactory}
|
| */
|
| public class HttpUrlRequestFactoryTest extends InstrumentationTestCase {
|
| @SmallTest
|
| @@ -24,8 +24,8 @@ public class HttpUrlRequestFactoryTest extends InstrumentationTestCase {
|
| HttpUrlRequestFactory factory = HttpUrlRequestFactory.createFactory(
|
| getInstrumentation().getContext(), config);
|
| assertNotNull("Factory should be created", factory);
|
| - assertTrue("Factory should be Chromium/n.n.n.n/r",
|
| - Pattern.matches("Chromium/\\d+\\.\\d+\\.\\d+\\.\\d+@\\d+",
|
| + assertTrue("Factory should be Chromium/n.n.n.n@r",
|
| + Pattern.matches("Chromium/\\d+\\.\\d+\\.\\d+\\.\\d+@\\w+",
|
| factory.getName()));
|
| }
|
|
|
| @@ -39,7 +39,8 @@ public class HttpUrlRequestFactoryTest extends InstrumentationTestCase {
|
| getInstrumentation().getContext(), config);
|
| assertNotNull("Factory should be created", factory);
|
| assertTrue("Factory should be HttpUrlConnection/n.n.n.n@r",
|
| - Pattern.matches("HttpUrlConnection/\\d+\\.\\d+\\.\\d+\\.\\d+@\\d+",
|
| + Pattern.matches(
|
| + "HttpUrlConnection/\\d+\\.\\d+\\.\\d+\\.\\d+@\\w+",
|
| factory.getName()));
|
| }
|
| }
|
|
|