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

Unified Diff: components/cronet/android/cronet_url_request_context_adapter.h

Issue 2406273002: [Cronet] Test the libcronet that's shipped, not libcronet_test (Closed)
Patch Set: fix perf test Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/cronet_url_request_context_adapter.h
diff --git a/components/cronet/android/cronet_url_request_context_adapter.h b/components/cronet/android/cronet_url_request_context_adapter.h
index 647cc0630742fe8db1f70a26a5e4355b8b664c15..4067d24ad4e362b37f1e790efa00d5d8fafaf0cd 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.h
+++ b/components/cronet/android/cronet_url_request_context_adapter.h
@@ -78,6 +78,9 @@ class CronetURLRequestContextAdapter
bool IsOnNetworkThread() const;
net::URLRequestContext* GetURLRequestContext();
+ jlong GetUrlRequestContextForTesting(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jcaller);
// Starts NetLog logging to file. This can be called on any thread. Returns
// false if it fails to open log file.

Powered by Google App Engine
This is Rietveld 408576698