1008a11233c9edb6544a1e4d65e291bb16066fa3 |
|
02-Mar-2016 |
Tomasz Mikolajewski <mtomasz@google.com> |
Fallback to byte-by-byte copy/move if optimized fails. Sometimes providers may refuse to do a provider-side copy/move even though the documents had the SUPPORTS_COPY/MOVE flags set. This is because optimized copy/move may be only supported within the same root. Since there is no easy way to check if documents are on the same roots from DocumentsUI, as well as whether the provider can actually copy/move efficiently between different roots, we should tolerate the failure and do a fallback to byte-by-byte operation. Bug: 27436368 Change-Id: Ia1a0fbdba26c06b2151afc25d8513c01d60d31db
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/DocumentsProviderHelper.java
|
c7b832202a8f1f91e378e255e61c4aa703f53394 |
|
04-Feb-2016 |
Tomasz Mikolajewski <mtomasz@google.com> |
Migrate all tests to ActivityTest. ActivityInstrumentationTestCase2 takes care of starting and closing the activity, which prevents flakyness. Change-Id: I2d3908f6605a67a3c2d11e18a9c4799443828df9 (cherry picked from commit e366886c7d91b62fe1478a057fc4c0a104d12b02)
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/DocumentsProviderHelper.java
|
0950df196fc5a85910e18510eb8dea2a9f233312 |
|
26-Jan-2016 |
Aga Wronska <agawronska@google.com> |
Add tests for rename documents feature - Add helper class for the Ui tests. It creates basic test environment. It is intermediate layer between UiBot/DocumentsProviderHelper and UiTest classes. - Refactor SearchView tests - Add renaming support in the test DocumentsProvider - Add renaming tests Bug=26799799 Change-Id: I2849913a1addabff0087bb06b80f36de7cb144f3
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/DocumentsProviderHelper.java
|
2ed9f813b0870cfa11032aa9c9c10be0bee4b64b |
|
26-Jan-2016 |
Steve McKay <smckay@google.com> |
Enabled content validation in file ops tests. Authority isn't set by default. Wrapped in RootCursorWrapper. Bug: 26687509 Change-Id: Ie99dbd799914f03bf7beac540b64df67c1e637a6
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/DocumentsProviderHelper.java
|
ecbf3c504c5ec7ccb3e2be7f4dd175ebe634139d |
|
14-Jan-2016 |
Steve McKay <smckay@google.com> |
Support for concurrent file operations. Swith to using a regular service. Perform file ops on thread pool. Separate Job tests from service test. Check in service test that wake lock is released and service shut down. Increase copy buffer size to 32k (suggested by mtomasz). Rework Copy testing to use an out-of-process provider (which has caused a content validation problem). Move copy testing logic into base test and share it with Move testing. Change-Id: I2f97d6c9f23c205b0f39ca6ba93bec119d63c80b
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/DocumentsProviderHelper.java
|
0c3c695469715288568a514842b157c05df430a0 |
|
27-Oct-2015 |
Steve McKay <smckay@google.com> |
Use StubProvider for functional tests. Add a "UiBot" class for driving the UI from tests. Add a "DocumentsProviderHelper" class for convenient test doc setup. Update FilesActivityUiTest to use "TargetContext" which is necessary in order to perform ContentProvider operations. Fix a bug where CopyTest relied on implicit order of roots. Don't include guava in tests...since it breaks functional tests (incompatible class def). Add test coverage for: - basic roots list. - basic files list. - Live updates to files list. - basic delete operations. Bug: 24988170 Change-Id: I2ec01a5e1a474314cb33efb6e92df0f61dfcc1da NOTE: This is currently broken at the point I try to init files in the stub roots.
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/DocumentsProviderHelper.java
|