summaryrefslogtreecommitdiffstats
path: root/chromium/ppapi/proxy/resource_message_test_sink.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ppapi/proxy/resource_message_test_sink.h')
-rw-r--r--chromium/ppapi/proxy/resource_message_test_sink.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/chromium/ppapi/proxy/resource_message_test_sink.h b/chromium/ppapi/proxy/resource_message_test_sink.h
index cbbece3134d..2593aaae221 100644
--- a/chromium/ppapi/proxy/resource_message_test_sink.h
+++ b/chromium/ppapi/proxy/resource_message_test_sink.h
@@ -33,7 +33,7 @@ class ResourceMessageTestSink : public IPC::TestSink {
// Searches the queue for the first resource call message with a nested
// message matching the given ID. On success, returns true and populates the
- // givem params and nested message.
+ // given params and nested message.
bool GetFirstResourceCallMatching(
uint32 id,
ResourceMessageCallParams* params,
@@ -45,6 +45,17 @@ class ResourceMessageTestSink : public IPC::TestSink {
ResourceMessageReplyParams* params,
IPC::Message* nested_msg);
+ // Searches the queue for all resource call messages with a nested message
+ // matching the given ID.
+ typedef std::pair<ResourceMessageCallParams, IPC::Message> ResourceCall;
+ typedef std::vector<ResourceCall> ResourceCallVector;
+ ResourceCallVector GetAllResourceCallsMatching(uint32 id);
+
+ // Like GetAllResourceCallsMatching except for replies.
+ typedef std::pair<ResourceMessageReplyParams, IPC::Message> ResourceReply;
+ typedef std::vector<ResourceReply> ResourceReplyVector;
+ ResourceReplyVector GetAllResourceRepliesMatching(uint32 id);
+
private:
scoped_ptr<IPC::Message> sync_reply_msg_;
};