OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.net; | 5 package org.chromium.net; |
6 | 6 |
7 import static junit.framework.Assert.assertTrue; | 7 import static junit.framework.Assert.assertTrue; |
8 | 8 |
9 import org.chromium.base.JNINamespace; | 9 import org.chromium.base.annotations.JNINamespace; |
10 import org.chromium.net.test.FailurePhase; | 10 import org.chromium.net.test.FailurePhase; |
11 | 11 |
12 /** | 12 /** |
13 * Helper class to set up url interceptors for testing purposes. | 13 * Helper class to set up url interceptors for testing purposes. |
14 */ | 14 */ |
15 @JNINamespace("cronet") | 15 @JNINamespace("cronet") |
16 public final class MockUrlRequestJobFactory { | 16 public final class MockUrlRequestJobFactory { |
17 /** | 17 /** |
18 * Sets up URL interceptors. | 18 * Sets up URL interceptors. |
19 */ | 19 */ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 private static native void nativeAddUrlInterceptors(); | 63 private static native void nativeAddUrlInterceptors(); |
64 | 64 |
65 private static native String nativeGetMockUrlWithFailure(int phase, int netE
rror); | 65 private static native String nativeGetMockUrlWithFailure(int phase, int netE
rror); |
66 | 66 |
67 private static native String nativeGetMockUrlForData(String data, | 67 private static native String nativeGetMockUrlForData(String data, |
68 int dataRepeatCount); | 68 int dataRepeatCount); |
69 | 69 |
70 private static native String nativeGetMockUrlForSSLCertificateError(); | 70 private static native String nativeGetMockUrlForSSLCertificateError(); |
71 } | 71 } |
OLD | NEW |