Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: ppapi/tests/test_post_message.cc

Issue 55133010: [PPAPI] Fixed FileSystems from JavaScript not having a context. (Closed) Base URL: http://git.chromium.org/chromium/src.git@pepper-fs-fileio-test-disable
Patch Set: Nit: Return early, and un-indent code. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_renderer_connection.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_renderer_connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698