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

Side by Side Diff: ppapi/tests/test_url_loader.h

Issue 9139076: Added bounds checks to the URLLoader prefetch buffer threshhold. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/tests/test_url_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/c/trusted/ppb_file_io_trusted.h" 10 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
(...skipping 29 matching lines...) Expand all
40 std::string GetReachableAbsoluteURL(const std::string& file_name); 40 std::string GetReachableAbsoluteURL(const std::string& file_name);
41 std::string GetReachableCrossOriginURL(const std::string& file_name); 41 std::string GetReachableCrossOriginURL(const std::string& file_name);
42 int32_t OpenUntrusted(const pp::URLRequestInfo& request); 42 int32_t OpenUntrusted(const pp::URLRequestInfo& request);
43 int32_t OpenTrusted(const pp::URLRequestInfo& request); 43 int32_t OpenTrusted(const pp::URLRequestInfo& request);
44 int32_t OpenUntrusted(const std::string& method, 44 int32_t OpenUntrusted(const std::string& method,
45 const std::string& header); 45 const std::string& header);
46 int32_t OpenTrusted(const std::string& method, 46 int32_t OpenTrusted(const std::string& method,
47 const std::string& header); 47 const std::string& header);
48 int32_t Open(const pp::URLRequestInfo& request, 48 int32_t Open(const pp::URLRequestInfo& request,
49 bool with_universal_access); 49 bool with_universal_access);
50 int32_t OpenWithPrefetchBufferThreshold(int32_t lower, int32_t upper);
50 51
51 std::string TestBasicGET(); 52 std::string TestBasicGET();
52 std::string TestBasicPOST(); 53 std::string TestBasicPOST();
53 std::string TestBasicFilePOST(); 54 std::string TestBasicFilePOST();
54 std::string TestBasicFileRangePOST(); 55 std::string TestBasicFileRangePOST();
55 std::string TestCompoundBodyPOST(); 56 std::string TestCompoundBodyPOST();
56 std::string TestEmptyDataPOST(); 57 std::string TestEmptyDataPOST();
57 std::string TestBinaryDataPOST(); 58 std::string TestBinaryDataPOST();
58 std::string TestCustomRequestHeader(); 59 std::string TestCustomRequestHeader();
59 std::string TestFailsBogusContentLength(); 60 std::string TestFailsBogusContentLength();
60 std::string TestStreamToFile(); 61 std::string TestStreamToFile();
61 std::string TestUntrustedSameOriginRestriction(); 62 std::string TestUntrustedSameOriginRestriction();
62 std::string TestTrustedSameOriginRestriction(); 63 std::string TestTrustedSameOriginRestriction();
63 std::string TestUntrustedCrossOriginRequest(); 64 std::string TestUntrustedCrossOriginRequest();
64 std::string TestTrustedCrossOriginRequest(); 65 std::string TestTrustedCrossOriginRequest();
65 std::string TestUntrustedJavascriptURLRestriction(); 66 std::string TestUntrustedJavascriptURLRestriction();
66 std::string TestTrustedJavascriptURLRestriction(); 67 std::string TestTrustedJavascriptURLRestriction();
67 std::string TestUntrustedHttpRequests(); 68 std::string TestUntrustedHttpRequests();
68 std::string TestTrustedHttpRequests(); 69 std::string TestTrustedHttpRequests();
69 std::string TestFollowURLRedirect(); 70 std::string TestFollowURLRedirect();
70 std::string TestAuditURLRedirect(); 71 std::string TestAuditURLRedirect();
71 std::string TestAbortCalls(); 72 std::string TestAbortCalls();
72 std::string TestUntendedLoad(); 73 std::string TestUntendedLoad();
74 std::string TestPrefetchBufferThreshold();
73 75
74 const PPB_FileIOTrusted* file_io_trusted_interface_; 76 const PPB_FileIOTrusted* file_io_trusted_interface_;
75 const PPB_URLLoaderTrusted* url_loader_trusted_interface_; 77 const PPB_URLLoaderTrusted* url_loader_trusted_interface_;
76 }; 78 };
77 79
78 #endif // PAPPI_TESTS_TEST_URL_LOADER_H_ 80 #endif // PAPPI_TESTS_TEST_URL_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/tests/test_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698