Wrote initial suite of tests for ThrottleService, checking a variety of edge cases. Checks going over limits, updating policies, and reset after cycle elapses. Moved NTP code in ThrottleService into new TrustedTime interface, which makes it easier to understand, and allows tests to provide custom clocks. Change-Id: I0d62b8b3a169516a2ab2d33025f6fe30dc792be8
22 lines
425 B
Makefile
22 lines
425 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# We only want this apk build for tests.
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Include all test java files.
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
easymocklib \
|
|
guava
|
|
|
|
LOCAL_JAVA_LIBRARIES := android.test.runner services
|
|
|
|
LOCAL_PACKAGE_NAME := FrameworksServicesTests
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
include $(BUILD_PACKAGE)
|
|
|