diff options
Diffstat (limited to 'ppapi/proxy/printing_resource_unittest.cc')
-rw-r--r-- | ppapi/proxy/printing_resource_unittest.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ppapi/proxy/printing_resource_unittest.cc b/ppapi/proxy/printing_resource_unittest.cc index 980147f..ed96364 100644 --- a/ppapi/proxy/printing_resource_unittest.cc +++ b/ppapi/proxy/printing_resource_unittest.cc @@ -7,11 +7,11 @@ #include "base/message_loop.h" #include "ppapi/c/dev/ppb_printing_dev.h" #include "ppapi/c/pp_errors.h" +#include "ppapi/proxy/locking_resource_releaser.h" #include "ppapi/proxy/printing_resource.h" #include "ppapi/proxy/ppapi_messages.h" #include "ppapi/proxy/ppapi_proxy_test.h" #include "ppapi/thunk/thunk.h" -#include "ppapi/shared_impl/scoped_pp_resource.h" namespace ppapi { namespace proxy { @@ -47,13 +47,12 @@ TEST_F(PrintingResourceTest, GetDefaultPrintSettings) { const PPB_Printing_Dev_0_7* printing_iface = thunk::GetPPB_Printing_Dev_0_7_Thunk(); - ScopedPPResource res(ScopedPPResource::PassRef(), - printing_iface->Create(pp_instance())); + LockingResourceReleaser res(printing_iface->Create(pp_instance())); PP_PrintSettings_Dev output_settings; int32_t result = printing_iface->GetDefaultPrintSettings( - res, &output_settings, PP_MakeCompletionCallback(&Callback, NULL)); + res.get(), &output_settings, PP_MakeCompletionCallback(&Callback, NULL)); ASSERT_EQ(PP_OK_COMPLETIONPENDING, result); // Should have sent a "GetDefaultPrintSettings" message. |