summaryrefslogtreecommitdiffstats
path: root/media/tests/players
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-01-28 11:19:57 -0800
committerAndreas Huber <andih@google.com>2010-01-28 11:52:43 -0800
commit256430093679e1d62b54fb0c852126e54d162f6f (patch)
tree028c49d18e0e77bc69f8967dda61619ee324f7a2 /media/tests/players
parent75d76bcf52587e4bfe00b7377d100510a3489674 (diff)
downloadframeworks_base-256430093679e1d62b54fb0c852126e54d162f6f.zip
frameworks_base-256430093679e1d62b54fb0c852126e54d162f6f.tar.gz
frameworks_base-256430093679e1d62b54fb0c852126e54d162f6f.tar.bz2
API Extension: Support for optionally specifying a map of extra request headers when specifying the uri of media data to be played.
related-to-bug: 2393577 Original change by Andrei Popescu <andreip@google.com>
Diffstat (limited to 'media/tests/players')
-rw-r--r--media/tests/players/invoke_mock_media_player.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/media/tests/players/invoke_mock_media_player.cpp b/media/tests/players/invoke_mock_media_player.cpp
index 77bb5b2..b3cc8b6 100644
--- a/media/tests/players/invoke_mock_media_player.cpp
+++ b/media/tests/players/invoke_mock_media_player.cpp
@@ -35,6 +35,8 @@ using android::UNKNOWN_ERROR;
using android::player_type;
using android::sp;
using android::status_t;
+using android::String8;
+using android::KeyedVector;
// This file contains a test player that is loaded via the
// TestPlayerStub class. The player contains various implementation
@@ -53,7 +55,9 @@ class Player: public MediaPlayerBase
virtual status_t initCheck() {return OK;}
virtual bool hardwareOutput() {return true;}
- virtual status_t setDataSource(const char *url) {
+ virtual status_t setDataSource(
+ const char *url,
+ const KeyedVector<String8, String8> *) {
LOGV("setDataSource %s", url);
mTest = TEST_UNKNOWN;
if (strncmp(url, kPing, strlen(kPing)) == 0) {