| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PAPPI_TESTS_TEST_URL_LOADER_H_ | 5 #ifndef PAPPI_TESTS_TEST_URL_LOADER_H_ |
| 6 #define PAPPI_TESTS_TEST_URL_LOADER_H_ | 6 #define PAPPI_TESTS_TEST_URL_LOADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/tests/test_case.h" | 10 #include "ppapi/tests/test_case.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 std::string ReadEntireFile(pp::FileIO* file_io, std::string* data); | 29 std::string ReadEntireFile(pp::FileIO* file_io, std::string* data); |
| 30 std::string ReadEntireResponseBody(pp::URLLoader* loader, | 30 std::string ReadEntireResponseBody(pp::URLLoader* loader, |
| 31 std::string* body); | 31 std::string* body); |
| 32 std::string LoadAndCompareBody(const pp::URLRequestInfo& request, | 32 std::string LoadAndCompareBody(const pp::URLRequestInfo& request, |
| 33 const std::string& expected_body); | 33 const std::string& expected_body); |
| 34 | 34 |
| 35 std::string TestBasicGET(); | 35 std::string TestBasicGET(); |
| 36 std::string TestBasicPOST(); | 36 std::string TestBasicPOST(); |
| 37 std::string TestBasicFilePOST(); |
| 38 std::string TestBasicFileRangePOST(); |
| 37 std::string TestCompoundBodyPOST(); | 39 std::string TestCompoundBodyPOST(); |
| 38 std::string TestEmptyDataPOST(); | 40 std::string TestEmptyDataPOST(); |
| 39 std::string TestBinaryDataPOST(); | 41 std::string TestBinaryDataPOST(); |
| 40 std::string TestCustomRequestHeader(); | 42 std::string TestCustomRequestHeader(); |
| 41 std::string TestIgnoresBogusContentLength(); | 43 std::string TestIgnoresBogusContentLength(); |
| 42 std::string TestStreamToFile(); | 44 std::string TestStreamToFile(); |
| 43 std::string TestSameOriginRestriction(); | 45 std::string TestSameOriginRestriction(); |
| 44 std::string TestJavascriptURLRestriction(); | 46 std::string TestJavascriptURLRestriction(); |
| 45 std::string TestCrossOriginRequest(); | 47 std::string TestCrossOriginRequest(); |
| 46 std::string TestAuditURLRedirect(); | 48 std::string TestAuditURLRedirect(); |
| 47 std::string TestAbortCalls(); | 49 std::string TestAbortCalls(); |
| 48 std::string TestUntendedLoad(); | 50 std::string TestUntendedLoad(); |
| 49 | 51 |
| 50 const PPB_FileIOTrusted* file_io_trusted_interface_; | 52 const PPB_FileIOTrusted* file_io_trusted_interface_; |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 #endif // PAPPI_TESTS_TEST_URL_LOADER_H_ | 55 #endif // PAPPI_TESTS_TEST_URL_LOADER_H_ |
| OLD | NEW |