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.
20 lines
428 B
Makefile
20 lines
428 B
Makefile
|
|
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
#LOCAL_SDK_VERSION := current
|
|
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
LOCAL_JAVA_LIBRARIES := android.test.runner
|
|
LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 mockito-target ub-uiautomator
|
|
|
|
LOCAL_PACKAGE_NAME := DocumentsUITests
|
|
LOCAL_INSTRUMENTATION_FOR := DocumentsUI
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
include $(BUILD_PACKAGE)
|
|
|