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 | 14d2747c7e54037e267bcff78b29e65b2181f0fa (patch) | |
tree | decfefe1e3d86b5f246afda53200aca2a981709e /include/media/MediaPlayerInterface.h | |
parent | 20111aa043c5f404472bc63b90bc5aad906b1101 (diff) | |
download | frameworks_av-14d2747c7e54037e267bcff78b29e65b2181f0fa.zip frameworks_av-14d2747c7e54037e267bcff78b29e65b2181f0fa.tar.gz frameworks_av-14d2747c7e54037e267bcff78b29e65b2181f0fa.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/MediaPlayerInterface.h')
-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, }; |