Index: ppapi/proxy/ppp_instance_proxy_unittest.cc |
diff --git a/ppapi/proxy/ppp_instance_proxy_unittest.cc b/ppapi/proxy/ppp_instance_proxy_unittest.cc |
index 91775b0c8046ee5a851515ed36085f70de028145..e2df26e250f9fc24f0f199db88e68175ee59140e 100644 |
--- a/ppapi/proxy/ppp_instance_proxy_unittest.cc |
+++ b/ppapi/proxy/ppp_instance_proxy_unittest.cc |
@@ -10,10 +10,10 @@ |
#include "ppapi/c/ppb_url_loader.h" |
#include "ppapi/c/ppp_instance.h" |
#include "ppapi/c/private/ppb_flash_fullscreen.h" |
+#include "ppapi/proxy/locking_resource_releaser.h" |
#include "ppapi/proxy/ppapi_messages.h" |
#include "ppapi/proxy/ppapi_proxy_test.h" |
#include "ppapi/shared_impl/ppb_view_shared.h" |
-#include "ppapi/shared_impl/scoped_pp_resource.h" |
namespace ppapi { |
namespace proxy { |
@@ -163,11 +163,10 @@ TEST_F(PPP_Instance_ProxyTest, PPPInstance1_0) { |
data.clip_rect = expected_clip; |
data.device_scale = 1.0f; |
ResetReceived(); |
- ScopedPPResource view_resource( |
- ScopedPPResource::PassRef(), |
+ LockingResourceReleaser view_resource( |
(new PPB_View_Shared(OBJECT_IS_IMPL, |
expected_instance, data))->GetReference()); |
- ppp_instance->DidChangeView(expected_instance, view_resource); |
+ ppp_instance->DidChangeView(expected_instance, view_resource.get()); |
did_change_view_called.Wait(); |
EXPECT_EQ(received_instance, expected_instance); |
EXPECT_EQ(received_position.point.x, expected_position.point.x); |