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. 4 5package org.chromium.cronet_test_apk; 6 7import org.chromium.base.JNINamespace; 8 9/** 10 * Utilities for Cronet testing 11 */ 12@JNINamespace("cronet") 13public class CronetTestUtil { 14 /** 15 * Start QUIC server on local host. 16 * @return non-zero QUIC server port number on success or 0 if failed. 17 */ 18 public static int startQuicServer() { 19 return nativeStartQuicServer(); 20 } 21 22 private static native int nativeStartQuicServer(); 23} 24