Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: components/cronet/android/test/src/org/chromium/net/MockCertVerifier.java

Issue 1389213003: [Cronet] Use Https for Quic Test Server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ryancl
Patch Set: Address Paul's comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.net;
6
7 import org.chromium.base.annotations.JNINamespace;
8
9 /**
10 * A Java wrapper to supply a net::MockCertVerifier which can be then passed
11 * into {@link CronetEngine.Builder} for testing. The native pointer will be
12 * freed when CronetEngine is torn down.
13 */
14 @JNINamespace("cronet")
15 public class MockCertVerifier {
16 private long mMockCertVerifier = 0;
pauljensen 2015/10/19 18:52:29 can we just replace mMockCertVerifier, MockCertVer
xunjieli 2015/10/19 20:24:15 Done.
17
18 /**
19 * Creates a native net::MockCertVerifier.
20 * @param certs a String array of certs to accept in testing.
21 */
22 public MockCertVerifier(String[] certs) {
23 mMockCertVerifier = nativeCreateMockCertVerifier(certs);
24 }
25
26 /**
27 * Returns the pointer to the native net::MockCertVerifier.
28 */
29 public long getNativePointer() {
30 return mMockCertVerifier;
31 }
32
33 private static native long nativeCreateMockCertVerifier(String[] certs);
34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698