"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "java_src/src/main/java/com/google/crypto/tink/testing/TestUtil.java" between
tink-1.6.0.tar.gz and tink-1.6.1.tar.gz

About: Tink is a cryptographic library that provides a safe, simple and agile API for common cryptographic tasks, like symmetric encryption, message authentication, digital signatures, and hybrid encryption.

TestUtil.java  (tink-1.6.0):TestUtil.java  (tink-1.6.1)
skipping to change at line 572 skipping to change at line 572
} }
return res == 0; return res == 0;
} }
/** /**
* Best-effort checks that this is Android. * Best-effort checks that this is Android.
* *
* @return true if running on Android. * @return true if running on Android.
*/ */
public static boolean isAndroid() { public static boolean isAndroid() {
try { // https://developer.android.com/reference/java/lang/System#getProperties%28
Class.forName("android.app.Application", /*initialize=*/ false, null); %29
return true; return "The Android Project".equals(System.getProperty("java.vendor"));
} catch (Exception e) {
// If Application isn't loaded, it might as well not be Android.
return false;
}
} }
/** /**
* Check that this is running in Remote Build Execution. * Check that this is running in Remote Build Execution.
* *
* @return true if running on Remote Build Execution. * @return true if running on Remote Build Execution.
*/ */
public static boolean isRemoteBuildExecution() { public static boolean isRemoteBuildExecution() {
// This check depends on the system property rbe being set to 1. // This check depends on the system property rbe being set to 1.
// The property is set in kokoro/presubmit-remote.sh via bazel: --jvmopt=-Dr be=1. // The property is set in kokoro/presubmit-remote.sh via bazel: --jvmopt=-Dr be=1.
 End of changes. 1 change blocks. 
7 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)