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

Unified Diff: ppapi/tests/test_url_loader.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_graphics_2d.cc ('k') | ppapi/tests/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_url_loader.cc
diff --git a/ppapi/tests/test_url_loader.cc b/ppapi/tests/test_url_loader.cc
index 72e6d40b54e6d6280f88f295a7bc52d765635925..2b606c20ab5dbc5d28ad831d211913f107f84058 100644
--- a/ppapi/tests/test_url_loader.cc
+++ b/ppapi/tests/test_url_loader.cc
@@ -56,7 +56,7 @@ void TestURLLoader::RunTest() {
std::string TestURLLoader::ReadEntireFile(pp::FileIO_Dev* file_io,
std::string* data) {
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
char buf[256];
int64_t offset = 0;
@@ -77,7 +77,7 @@ std::string TestURLLoader::ReadEntireFile(pp::FileIO_Dev* file_io,
std::string TestURLLoader::ReadEntireResponseBody(pp::URLLoader* loader,
std::string* body) {
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
char buf[2]; // Small so that multiple reads are needed.
for (;;) {
@@ -97,7 +97,7 @@ std::string TestURLLoader::ReadEntireResponseBody(pp::URLLoader* loader,
std::string TestURLLoader::LoadAndCompareBody(
const pp::URLRequestInfo& request,
const std::string& expected_body) {
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::URLLoader loader(*instance_);
int32_t rv = loader.Open(request, callback);
@@ -194,7 +194,7 @@ std::string TestURLLoader::TestStreamToFile() {
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);
@@ -251,7 +251,7 @@ std::string TestURLLoader::TestSameOriginRestriction() {
pp::URLRequestInfo request;
request.SetURL("http://www.google.com/");
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::URLLoader loader(*instance_);
int32_t rv = loader.Open(request, callback);
@@ -278,7 +278,7 @@ std::string TestURLLoader::TestAuditURLRedirect() {
request.SetURL("/server-redirect?www.google.com");
request.SetFollowRedirects(false);
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
pp::URLLoader loader(*instance_);
int32_t rv = loader.Open(request, callback);
@@ -305,7 +305,7 @@ std::string TestURLLoader::TestAbortCalls() {
pp::URLRequestInfo request;
request.SetURL("test_url_loader_data/hello.txt");
- TestCompletionCallback callback;
+ TestCompletionCallback callback(instance_->pp_instance());
int32_t rv;
// Abort |Open()|.
« no previous file with comments | « ppapi/tests/test_graphics_2d.cc ('k') | ppapi/tests/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698