Make castv2 performance test work.
[chromium-blink-merge.git] / components / cronet / android / test / src / org / chromium / net / CronetTestUtil.java
blob652b5711f8a8b6cdbe54015779adf992c965aea7
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
3 // found in the LICENSE file.
5 package org.chromium.net;
7 import org.chromium.base.JNINamespace;
9 /**
10 * Utilities for Cronet testing
12 @JNINamespace("cronet")
13 public class CronetTestUtil {
14 /**
15 * Start QUIC server on local host.
16 * @return non-zero QUIC server port number on success or 0 if failed.
18 public static int startQuicServer() {
19 return nativeStartQuicServer();
22 private static native int nativeStartQuicServer();