Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tor Android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
Android Libs
Tor Android
Commits
977d79a9
Commit
977d79a9
authored
Dec 1, 2021
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Update test URLs to fix failing tests.
parent
04d249d9
Branches
Branches containing commit
No related tags found
1 merge request
!2
update upstream
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tor-android-binary/src/androidTest/java/org/torproject/jni/TorServiceTest.java
+2
-2
2 additions, 2 deletions
...c/androidTest/java/org/torproject/jni/TorServiceTest.java
with
2 additions
and
2 deletions
tor-android-binary/src/androidTest/java/org/torproject/jni/TorServiceTest.java
+
2
−
2
View file @
977d79a9
...
@@ -155,7 +155,7 @@ public class TorServiceTest {
...
@@ -155,7 +155,7 @@ public class TorServiceTest {
assertTrue
(
"NetCipher.getHttpURLConnection should use Tor"
,
assertTrue
(
"NetCipher.getHttpURLConnection should use Tor"
,
NetCipher
.
isNetCipherGetHttpURLConnectionUsingTor
());
NetCipher
.
isNetCipherGetHttpURLConnectionUsingTor
());
URLConnection
c
=
NetCipher
.
getHttpsURLConnection
(
"https://www.nytimes
3xbfgragh
.onion/"
);
URLConnection
c
=
NetCipher
.
getHttpsURLConnection
(
"https://www.nytimes
n7cgmftshazwhfgzm37qxb44r64ytbb2dj3x62d2lljsciiyd
.onion/"
);
Log
.
i
(
TAG
,
"Content-Length: "
+
c
.
getContentLength
());
Log
.
i
(
TAG
,
"Content-Length: "
+
c
.
getContentLength
());
Log
.
i
(
TAG
,
"CONTENTS: "
+
new
String
(
IOUtils
.
readFully
(
c
.
getInputStream
(),
100
)));
Log
.
i
(
TAG
,
"CONTENTS: "
+
new
String
(
IOUtils
.
readFully
(
c
.
getInputStream
(),
100
)));
...
@@ -242,7 +242,7 @@ public class TorServiceTest {
...
@@ -242,7 +242,7 @@ public class TorServiceTest {
// ~350MB
// ~350MB
//URL url = new URL("http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2");
//URL url = new URL("http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2");
// ~3MB
// ~3MB
URL
url
=
new
URL
(
"http://dl.google.com/android/repository/platform-tools_r24-linux.zip"
);
URL
url
=
new
URL
(
"http
s
://dl.google.com/android/repository/platform-tools_r24-linux.zip"
);
// 55KB
// 55KB
//URL url = new URL("https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar");
//URL url = new URL("https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar");
HttpURLConnection
connection
=
NetCipher
.
getHttpURLConnection
(
url
);
HttpURLConnection
connection
=
NetCipher
.
getHttpURLConnection
(
url
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment