summaryrefslogtreecommitdiff
path: root/core/java/android/test
Commit message (Collapse)AuthorAgeFilesLines
* Move android.test classes from core/java to legacy-test/srcPaul Duffin2016-12-0813-1018/+0
| | | | | | Bug: 30188076 Test: make checkbuild Change-Id: Ifa291909fcf47da788627b496bd72f54efd78ed7
* Deprecated platform Android testing APIsStephan Linzner2016-01-2711-9/+66
| | | | | | | | | | | | | - Deprecated most android.test.* APIs - Kept ProviderTestCase2 and LoaderTestCase since we don't have a replacement yet - Deprecated android.test.suitebuilder - Added Javadoc to all deprecated APIs with links to corresponding Android Testing Support Library APIs - Removed all trailing whitespace Bug: 22314304 Change-Id: I1b1f0dd5132364110f1dfd4e3eb2dd044700d859
* Suppress testAndroidTestCaseSetupProperlyStuart Scott2015-10-051-0/+2
| | | | | | This test shows up in CTS reports nearly 1000 times!!! Change-Id: I6ed8006a623a49790ed9c336f01e8250a831b1ac
* Update scrubClass() to match CoreTestRunner.Jeff Sharkey2013-02-141-5/+5
| | | | | | | | | | | | AndroidTestCase.scrubClass() is quite aggressive, and would end up clearing out final fields like these: private static final byte[] TEST_DATA = new byte[1]; This change updates the logic to match InstrumentationCoreTestRunner in the cleanup() method. Change-Id: Iba455ea35b2628473ce0ccc1431ab47c1caad45c
* Show more info when a testcase fails.Nick Kralevich2012-08-061-1/+2
| | | | Change-Id: I5aa6967981824f3291daef915453fe7420cfed9e
* docs: fix several linksScott Main2012-06-221-1/+1
| | | | Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9
* docs: Add developer guide cross-references, Project ACRE, round 4Joe Fernandez2011-12-221-1/+6
| | | | Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
* Added RepetitiveTest annotation and test runner supportJack Wang2010-10-192-5/+61
| | | | Change-Id: I7bf0871ede6dd69512c6b6ea3484693ba5b78e89
* New test on ContextMenuInfo packed positions.Gilles Debunne2010-02-251-4/+4
| | | | | | | | With and without headers. Non regression test for bug http://b/issue?id=1778239 Change-Id: I0235528ac6f8394292bac35f2350f3d5be1e4df7
* Added View#dispatchViewVisibilityChanged and ↵Adam Powell2009-12-101-36/+0
| | | | | | View#onDispatchVisibilityChanged; updated api; tests Reverted a change to InstrumentationTestCase that would have allowed @UiThreadTest on setUp() methods of tests.
* Fix crash with @UiThreadTest in InstrumentationTestCase.Romain Guy2009-12-101-1/+1
|
* Add support for @UiThreadTest on setUp() and tearDown() in ↵Romain Guy2009-12-101-0/+36
| | | | InstrumentationTestCase.
* Make perf metrics collection & output via instrumentation simplerJack Wang2009-11-101-32/+0
| | | | | | | | | | - Added includeDetailedStats metadata to TimedTest for collecting additional metrics like memory usage and binder transactions - Added PerformanceCollectorTestCase interface for hard-typing test class as performance test while still able to inherit from instrumenation test classes - Reverted previous changes to PerformanceTestBase, will deprecate PerformanceTestBase/Case in a future CL - Removed 'performance.' prefix from keys written to instrumentation output
* Performance measurement framework:Jack Wang2009-09-111-0/+32
| | | | | | | | | | | | | | | | | + For bug 1810508 - Added PerformanceCollector class to collect runtime and memory usage data * Moved performance snapshotting from Intrumentation to PerformanceCollector - Added PerformanceResultsWriter interface which defines functions for reporting performance data + Framework integration - Added TimedTest annotation to automatically time tests and write results to instrumentation output - Modified PerformanceTestBase to add collection hooks and wrapper methods - Modified WatcherResultPrinter in InstrumentationTestRunner to implement PerformanceResultsWriter for instrumentation output of performance data - Modified InstrumentationTestRunner and AndroidTestRunner to pass writer instance to test
* Fix bug 1546445: Correct spelling errors in APIJack Wang2009-08-252-2/+16
| | | | | - InstrumentationTestCase.injectInsrumentation - AndroidTestRunner.setInstrumentaiton
* Adding "test context" to AndroidTestCaseDmitri Plotnikov2009-08-031-3/+23
|
* Fix bug 1927213 test failures.Dianne Hackborn2009-06-181-3/+21
| | | | | | Eat the security exception that is now thrown by the window manager to retain the old behavior for tests. (We still need to throw the exception from the WM for the new permission tests.)
* Add utility methods to AndroidTestCase for asserting permission requirements ↵Karl Rosaen2009-06-151-2/+70
| | | | for launching activities and accessing ContentProviders.
* AI 147167: am: CL 147162 Emphasize in the javadoc that the "pkg" parameters toAndy Stadler2009-04-211-0/+9
| | | | | | | | | | | | | InstrumentationTestCase and its descendants should be the package manager package name (not the java package name, and not the test package) of the package holding the Activity under test. Added similar notations to the ApiDemos call sites. JAVADOC ONLY - should be safe change for cupcake sdk. Original author: stadler Merged from: //branches/cupcake/... Automated import of CL 147167
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0312-0/+768
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0312-768/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-174-5/+142
|
* Initial ContributionThe Android Open Source Project2008-10-219-0/+631