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

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

Issue 1263053002: Move JNI annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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 org.chromium.base.JNINamespace; 7 import org.chromium.base.annotations.JNINamespace;
8 8
9 /** 9 /**
10 * Utilities for Cronet testing 10 * Utilities for Cronet testing
11 */ 11 */
12 @JNINamespace("cronet") 12 @JNINamespace("cronet")
13 public class CronetTestUtil { 13 public class CronetTestUtil {
14 /** 14 /**
15 * Start QUIC server on local host. 15 * Start QUIC server on local host.
16 * @return non-zero QUIC server port number on success or 0 if failed. 16 * @return non-zero QUIC server port number on success or 0 if failed.
17 */ 17 */
18 public static int startQuicServer() { 18 public static int startQuicServer() {
19 return nativeStartQuicServer(); 19 return nativeStartQuicServer();
20 } 20 }
21 21
22 private static native int nativeStartQuicServer(); 22 private static native int nativeStartQuicServer();
23 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698