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

Unified Diff: ppapi/tests/test_file_ref.cc

Issue 6432001: Implement proxy for FlashMenu and Run/QuitMessageLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle NULL menus more gracefully Created 9 years, 10 months 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 | « ppapi/tests/test_file_io.cc ('k') | ppapi/tests/test_graphics_2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_file_ref.cc
diff --git a/ppapi/tests/test_file_ref.cc b/ppapi/tests/test_file_ref.cc
index d3f137a4a990de48594c729241355101033d9f48..c336548a8706188661c79599085e5d19eb47e742 100644
--- a/ppapi/tests/test_file_ref.cc
+++ b/ppapi/tests/test_file_ref.cc
@@ -72,7 +72,7 @@ std::string TestFileRef::TestGetFileSystemType() {
request.SetURL("test_url_loader_data/hello.txt");
request.SetStreamToFile(true);
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::URLLoader loader(instance_);
int32_t rv = loader.Open(request, callback);
@@ -121,7 +121,7 @@ std::string TestFileRef::TestGetName() {
request.SetURL("test_url_loader_data/hello.txt");
request.SetStreamToFile(true);
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::URLLoader loader(instance_);
int32_t rv = loader.Open(request, callback);
@@ -165,7 +165,7 @@ std::string TestFileRef::TestGetPath() {
request.SetURL("test_url_loader_data/hello.txt");
request.SetStreamToFile(true);
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::URLLoader loader(instance_);
int32_t rv = loader.Open(request, callback);
@@ -220,7 +220,7 @@ std::string TestFileRef::TestGetParent() {
request.SetURL("test_url_loader_data/hello.txt");
request.SetStreamToFile(true);
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::URLLoader loader(instance_);
int32_t rv = loader.Open(request, callback);
@@ -244,7 +244,7 @@ std::string TestFileRef::TestGetParent() {
}
std::string TestFileRef::TestMakeDirectory() {
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
// Open.
pp::FileSystem_Dev file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY);
@@ -328,7 +328,7 @@ std::string TestFileRef::TestMakeDirectory() {
}
std::string TestFileRef::TestQueryAndTouchFile() {
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::FileSystem_Dev file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY);
int32_t rv = file_system.Open(1024, callback);
if (rv == PP_ERROR_WOULDBLOCK)
@@ -412,7 +412,7 @@ std::string TestFileRef::TestQueryAndTouchFile() {
}
std::string TestFileRef::TestDeleteFileAndDirectory() {
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::FileSystem_Dev file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY);
int32_t rv = file_system.Open(1024, callback);
if (rv == PP_ERROR_WOULDBLOCK)
@@ -496,7 +496,7 @@ std::string TestFileRef::TestDeleteFileAndDirectory() {
}
std::string TestFileRef::TestRenameFileAndDirectory() {
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::FileSystem_Dev file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY);
int32_t rv = file_system.Open(1024, callback);
if (rv == PP_ERROR_WOULDBLOCK)
« no previous file with comments | « ppapi/tests/test_file_io.cc ('k') | ppapi/tests/test_graphics_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698