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.cronet_test_apk; | 5 package org.chromium.net; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 | 8 |
9 import org.chromium.base.JNINamespace; | 9 import org.chromium.base.JNINamespace; |
10 | 10 |
11 /** | 11 /** |
12 * Helper class to set up url interceptors for testing purposes. | 12 * Helper class to set up url interceptors for testing purposes. |
13 */ | 13 */ |
14 @JNINamespace("cronet") | 14 @JNINamespace("cronet") |
15 public final class MockUrlRequestJobFactory { | 15 public final class MockUrlRequestJobFactory { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 private static native void nativeAddUrlInterceptors(String installedPath); | 76 private static native void nativeAddUrlInterceptors(String installedPath); |
77 | 77 |
78 private static native String nativeGetMockUrl(String path); | 78 private static native String nativeGetMockUrl(String path); |
79 | 79 |
80 private static native String nativeGetMockUrlWithFailure(String path, | 80 private static native String nativeGetMockUrlWithFailure(String path, |
81 int phase, int netError); | 81 int phase, int netError); |
82 | 82 |
83 private static native String nativeGetMockUrlForData(String data, | 83 private static native String nativeGetMockUrlForData(String data, |
84 int dataRepeatCount); | 84 int dataRepeatCount); |
85 } | 85 } |
OLD | NEW |