diff options
author | Nicolas Catania <niko@google.com> | 2009-07-13 14:37:49 -0700 |
---|---|---|
committer | Nicolas Catania <niko@google.com> | 2009-07-16 11:22:31 -0700 |
commit | 8f5fcab05f1d6f644a9c30f012b8ff302f24a118 (patch) | |
tree | 55cd20372765a9f652b41eda82cef1f24063bbfb /include/media | |
parent | 358efe418eae266734a16e9ae8f26043e9c64f05 (diff) | |
download | frameworks_base-8f5fcab05f1d6f644a9c30f012b8ff302f24a118.zip frameworks_base-8f5fcab05f1d6f644a9c30f012b8ff302f24a118.tar.gz frameworks_base-8f5fcab05f1d6f644a9c30f012b8ff302f24a118.tar.bz2 |
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.
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/MediaPlayerInterface.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h index d1933f6..9102b40 100644 --- a/include/media/MediaPlayerInterface.h +++ b/include/media/MediaPlayerInterface.h @@ -19,8 +19,10 @@ #ifdef __cplusplus +#include <sys/types.h> #include <ui/ISurface.h> #include <utils/RefBase.h> +#include <utils/Errors.h> #include <media/mediaplayer.h> #include <media/AudioSystem.h> @@ -33,7 +35,11 @@ enum player_type { PV_PLAYER = 1, SONIVOX_PLAYER = 2, VORBIS_PLAYER = 3, - STAGEFRIGHT_PLAYER = 4 + STAGEFRIGHT_PLAYER = 4, + // Test players are available only in the 'test' and 'eng' builds. + // The shared library with the test player is passed passed as an + // argument to the 'test:' url in the setDataSource call. + TEST_PLAYER = 5, }; |