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

Side by Side Diff: components/cronet/android/test/src/org/chromium/net/TestUploadDataStreamHandler.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 2015 The Chromium Authors. All rights reserved. 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 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 android.os.ConditionVariable; 7 import android.os.ConditionVariable;
8 8
9 import junit.framework.Assert; 9 import junit.framework.Assert;
10 10
11 import org.chromium.base.CalledByNative; 11 import org.chromium.base.annotations.CalledByNative;
12 import org.chromium.base.JNINamespace; 12 import org.chromium.base.annotations.JNINamespace;
13 import org.chromium.base.NativeClassQualifiedName; 13 import org.chromium.base.annotations.NativeClassQualifiedName;
14 14
15 /** 15 /**
16 * A wrapper class on top of the native net::UploadDataStream. This class is 16 * A wrapper class on top of the native net::UploadDataStream. This class is
17 * used in tests to drive the native UploadDataStream directly. 17 * used in tests to drive the native UploadDataStream directly.
18 */ 18 */
19 @JNINamespace("cronet") 19 @JNINamespace("cronet")
20 public final class TestUploadDataStreamHandler { 20 public final class TestUploadDataStreamHandler {
21 private long mTestUploadDataStreamHandler; 21 private long mTestUploadDataStreamHandler;
22 private ConditionVariable mWaitInitCalled = new ConditionVariable(); 22 private ConditionVariable mWaitInitCalled = new ConditionVariable();
23 private ConditionVariable mWaitInitComplete = new ConditionVariable(); 23 private ConditionVariable mWaitInitComplete = new ConditionVariable();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 @NativeClassQualifiedName("TestUploadDataStreamHandler") 163 @NativeClassQualifiedName("TestUploadDataStreamHandler")
164 private native void nativeCheckReadCallbackNotInvoked( 164 private native void nativeCheckReadCallbackNotInvoked(
165 long nativePtr); 165 long nativePtr);
166 166
167 @NativeClassQualifiedName("TestUploadDataStreamHandler") 167 @NativeClassQualifiedName("TestUploadDataStreamHandler")
168 private native void nativeDestroy(long nativePtr); 168 private native void nativeDestroy(long nativePtr);
169 169
170 private native long nativeCreateTestUploadDataStreamHandler( 170 private native long nativeCreateTestUploadDataStreamHandler(
171 long uploadDataStream); 171 long uploadDataStream);
172 } 172 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698