From 14d2747c7e54037e267bcff78b29e65b2181f0fa Mon Sep 17 00:00:00 2001 From: Nicolas Catania Date: Mon, 13 Jul 2009 14:37:49 -0700 Subject: New test player stub to load mock native players. Added a new class TestPlayerStub that takes a magic url in the setDataSource call. Based on the value of the url, the stub is going to load a DL and create the concrete player used during the test. After these initialization steps TestPlayerStub is just a wrapper. Added a new functional test MediaPlayerInvokeTest to demonstrate how a new mock player to test the invoke method can be loaded. Added a new mock player for the invoke test: invoke_mock_media_player.cpp. --- media/libmediaplayerservice/Android.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'media/libmediaplayerservice/Android.mk') diff --git a/media/libmediaplayerservice/Android.mk b/media/libmediaplayerservice/Android.mk index 6978b3d..f74ef3a 100644 --- a/media/libmediaplayerservice/Android.mk +++ b/media/libmediaplayerservice/Android.mk @@ -10,6 +10,7 @@ LOCAL_SRC_FILES:= \ MediaRecorderClient.cpp \ MediaPlayerService.cpp \ MetadataRetrieverClient.cpp \ + TestPlayerStub.cpp \ VorbisPlayer.cpp \ MidiFile.cpp @@ -28,6 +29,10 @@ LOCAL_SHARED_LIBRARIES := \ libmedia \ libandroid_runtime +ifneq ($(TARGET_SIMULATOR),true) +LOCAL_SHARED_LIBRARIES += libdl +endif + LOCAL_C_INCLUDES := external/tremor/Tremor \ $(call include-path-for, graphics corecg) \ $(TOP)/external/opencore/extern_libs_v2/khronos/openmax/include -- cgit v1.1