| Index: ppapi/proxy/video_decoder_resource_unittest.cc
|
| diff --git a/ppapi/proxy/video_decoder_resource_unittest.cc b/ppapi/proxy/video_decoder_resource_unittest.cc
|
| index fa6e89f985ddcec71f7d0a80b956dfb0a3fcb10f..28003baaa1264ae47e4912ccd3a58bbfc38a2a56 100644
|
| --- a/ppapi/proxy/video_decoder_resource_unittest.cc
|
| +++ b/ppapi/proxy/video_decoder_resource_unittest.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/memory/shared_memory.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "ppapi/c/pp_errors.h"
|
| +#include "ppapi/c/pp_rect.h"
|
| #include "ppapi/c/ppb_video_decoder.h"
|
| #include "ppapi/proxy/locking_resource_releaser.h"
|
| #include "ppapi/proxy/plugin_message_filter.h"
|
| @@ -58,9 +59,9 @@ class MockCompletionCallback {
|
| class VideoDecoderResourceTest : public PluginProxyTest {
|
| public:
|
| VideoDecoderResourceTest()
|
| - : decoder_iface_(thunk::GetPPB_VideoDecoder_0_2_Thunk()) {}
|
| + : decoder_iface_(thunk::GetPPB_VideoDecoder_1_0_Thunk()) {}
|
|
|
| - const PPB_VideoDecoder_0_2* decoder_iface() const { return decoder_iface_; }
|
| + const PPB_VideoDecoder_1_0* decoder_iface() const { return decoder_iface_; }
|
|
|
| void SendReply(const ResourceMessageCallParams& params,
|
| int32_t result,
|
| @@ -217,10 +218,9 @@ class VideoDecoderResourceTest : public PluginProxyTest {
|
| void SendPictureReady(const ResourceMessageCallParams& params,
|
| uint32_t decode_count,
|
| uint32_t texture_id) {
|
| - SendReply(
|
| - params,
|
| - PP_OK,
|
| - PpapiPluginMsg_VideoDecoder_PictureReady(decode_count, texture_id));
|
| + PP_Rect visible_rect = PP_MakeRectFromXYWH(0, 0, 640, 480);
|
| + SendReply(params, PP_OK, PpapiPluginMsg_VideoDecoder_PictureReady(
|
| + decode_count, texture_id, visible_rect));
|
| }
|
|
|
| void SendFlushReply(const ResourceMessageCallParams& params) {
|
| @@ -298,7 +298,7 @@ class VideoDecoderResourceTest : public PluginProxyTest {
|
| return true;
|
| }
|
|
|
| - const PPB_VideoDecoder_0_2* decoder_iface_;
|
| + const PPB_VideoDecoder_1_0* decoder_iface_;
|
|
|
| char decode_buffer_[kDecodeBufferSize];
|
| };
|
|
|