Statistics
| Branch: | Tag: | Revision:

trustedintents / test @ master

Name Size Revision Age Author Comment
  libs 8c9c9a54 over 3 years Hans-Christoph Steiner run JUnit tests using android-junit-report to g...
  res 167e88e1 over 3 years Hans-Christoph Steiner add missing res/ folder from test project
  src 1bafa22f over 3 years Hans-Christoph Steiner tests: make package lists reusable by other tes...
.classpath 466 Bytes 86718da8 over 3 years Hans-Christoph Steiner added android test project skeleton
.project 822 Bytes 86718da8 over 3 years Hans-Christoph Steiner added android test project skeleton
AndroidManifest.xml 697 Bytes 43e05883 over 3 years Hans-Christoph Steiner add basic test of sending Intents with package/...
ant.properties 800 Bytes cba1dc86 about 2 years Hans-Christoph Steiner move library into its own gradle-style dir
custom_rules.xml 681 Bytes 8c9c9a54 over 3 years Hans-Christoph Steiner run JUnit tests using android-junit-report to g...
project.properties 612 Bytes 86718da8 over 3 years Hans-Christoph Steiner added android test project skeleton

Latest revisions

# Date Author Comment
cba1dc86 12/08/2015 02:14 pm Hans-Christoph Steiner

move library into its own gradle-style dir

1bafa22f 07/30/2014 10:41 pm Hans-Christoph Steiner

tests: make package lists reusable by other test classes

43e05883 07/30/2014 10:27 pm Hans-Christoph Steiner

add basic test of sending Intents with package/ComponentName set

This actually runs the Intent through startActivity(), so that method is
provided by ActivityUnitTestCase so it might not actually do anything.

d293996c 07/30/2014 08:03 pm Hans-Christoph Steiner

tests: use list of actually installed packages for tests

The tests includes lists of possible package names, now this creates a list
from those lists of the packages that are actually installed. That will
make the tests run reliably on various devices and emulators.

ab803404 07/18/2014 04:05 am Hans-Christoph Steiner

tests: get TrustedIntents instance in setUp()

Most of the tests need an instance, and it should be cleared each time.

b876bccb 07/18/2014 04:05 am Hans-Christoph Steiner

add methods to remove Trusted Signers test if ApkSignaturePins are trusted

Since TrustedIntents is a singleton, there needs to be a way to remove
items from the list of trusted pins. Getting the instance will inherit any
pins that were set in the past by a given app.

1d5606ab 07/18/2014 04:05 am Hans-Christoph Steiner

test that addTrustedSigner() will not accept ApkSignaturePin.class

aeb2e7e5 07/18/2014 04:05 am Hans-Christoph Steiner

addTrustedSigner() returns whether add was successful or not

At the very least, this is useful in the tests.

76c3ca66 07/18/2014 04:05 am Hans-Christoph Steiner

isReceiverTrusted() and isIntentSane() check getComponent() for packageName

The packageName can be set with setPackage(), setClassName() or setClass().

  • getPackage() returns what is set by setPackage()
  • getComponent() returns what is set by setClassName() and setClass()
3c4d3da0 07/18/2014 04:05 am Hans-Christoph Steiner

make addTrustedSigner's argument a Class rather than ApkSignaturePin

There is no sense in anyone instantiating the class since it is in effect a
singleton, and the only instance methods are for validating that the
certificate matches the fingerprint. Using a Class as an argument mirrors...

View revisions

Also available in: Atom