150a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# Copyright 2011, The Android Open Source Project
250a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby#
350a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# Licensed under the Apache License, Version 2.0 (the "License");
450a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# you may not use this file except in compliance with the License.
550a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# You may obtain a copy of the License at
650a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby#
750a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby#     http://www.apache.org/licenses/LICENSE-2.0
850a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby#
950a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# Unless required by applicable law or agreed to in writing, software
1050a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# distributed under the License is distributed on an "AS IS" BASIS,
1150a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1250a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# See the License for the specific language governing permissions and
1350a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# limitations under the License.
1450a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
1550a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake HambyLOCAL_PATH:= $(call my-dir)
1650a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hambyinclude $(CLEAR_VARS)
1750a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
1850a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# We only want this apk build for tests.
1950a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake HambyLOCAL_MODULE_TAGS := tests
2050a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
21b605a6951b40a74097510b72d5d7ee254a95f505Wink SavilleLOCAL_JAVA_LIBRARIES := android.test.runner telephony-common
2250a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
2350a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# Include all test java files.
2450a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake HambyLOCAL_SRC_FILES := $(call all-java-files-under, src)
2550a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
2650a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# Notice that we don't have to include the src files of Email because, by
2750a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# running the tests using an instrumentation targeting Eamil, we
2850a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# automatically get all of its classes loaded into our environment.
2950a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
3050a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake HambyLOCAL_PACKAGE_NAME := CellBroadcastReceiverTests
3150a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
3250a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby# Apk must be signed with platform signature in order to send test broadcasts.
3350a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake HambyLOCAL_CERTIFICATE := platform
3450a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
3550a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake HambyLOCAL_INSTRUMENTATION_FOR := CellBroadcastReceiver
3650a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
3750a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hambyinclude $(BUILD_PACKAGE)
3850a624a47ce645a7992e346e40a4e7ec5e0df9b7Jake Hamby
39