Index: ppapi/tests/test_post_message.cc |
diff --git a/ppapi/tests/test_post_message.cc b/ppapi/tests/test_post_message.cc |
index 2932b0e6e8bba8ac1dc42e5cb32fa2f234af404f..ee0920dc9f44e721931a2fcd2d828c914c83ead4 100644 |
--- a/ppapi/tests/test_post_message.cc |
+++ b/ppapi/tests/test_post_message.cc |
@@ -620,6 +620,13 @@ std::string TestPostMessage::TestSendingResource() { |
pp::FileRef file_ref(file_system, file_path.c_str()); |
ASSERT_NE(0, file_ref.pp_resource()); |
+ // Ensure that the file can be queried. |
+ TestCompletionCallbackWithOutput<PP_FileInfo> cc(instance_->pp_instance(), |
+ callback_type()); |
+ cc.WaitForResult(file_ref.Query(cc.GetCallback())); |
+ CHECK_CALLBACK_BEHAVIOR(cc); |
+ ASSERT_EQ(PP_OK, cc.result()); |
+ |
// Read the file and test that its contents match. |
pp::FileIO file_io(instance_); |
ASSERT_NE(0, file_io.pp_resource()); |