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

Unified Diff: ppapi/tests/test_url_loader.h

Issue 11417145: Provide a safer URLLoader ReadResponseBody API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 | « ppapi/proxy/ppb_url_loader_proxy.cc ('k') | ppapi/tests/test_url_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_url_loader.h
diff --git a/ppapi/tests/test_url_loader.h b/ppapi/tests/test_url_loader.h
index 95c97b1f14c7a451b28973c69380bc1782fa0b00..4bcc4eee80496bc2e4de1260fe7456d4c36656dd 100644
--- a/ppapi/tests/test_url_loader.h
+++ b/ppapi/tests/test_url_loader.h
@@ -31,8 +31,12 @@ class TestURLLoader : public TestCase {
std::string ReadEntireFile(pp::FileIO* file_io, std::string* data);
std::string ReadEntireResponseBody(pp::URLLoader* loader,
std::string* body);
+ std::string ReadEntireResponseBodyToArray(pp::URLLoader* loader,
+ std::string* body);
std::string LoadAndCompareBody(const pp::URLRequestInfo& request,
const std::string& expected_body);
+ std::string LoadAndCompareBody_ToArray(const pp::URLRequestInfo& request,
+ const std::string& expected_body);
int32_t OpenFileSystem(pp::FileSystem* file_system, std::string* message);
int32_t PrepareFileForPost(const pp::FileRef& file_ref,
const std::string& data,
@@ -50,6 +54,7 @@ class TestURLLoader : public TestCase {
int32_t OpenWithPrefetchBufferThreshold(int32_t lower, int32_t upper);
std::string TestBasicGET();
+ std::string TestBasicGET_ToArray();
std::string TestBasicPOST();
std::string TestBasicFilePOST();
std::string TestBasicFileRangePOST();
« no previous file with comments | « ppapi/proxy/ppb_url_loader_proxy.cc ('k') | ppapi/tests/test_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698