Commit d4067421 authored by bbudge@chromium.org's avatar bbudge@chromium.org

Break FileIO and URLLoader tests down into individual cases.

This will allow us to keep more of our tests running and identify the cases
where they fail, so we can fix them.
Add a comment to chrome_tests.gypi to keep mock header file together with
test_case.html.
BUG=Pepper Code Yellow
TEST=ui_tests, --gtest_filter=PPAPITest.*, OutOfProcessPPAPITest.*, PPAPINaClTest.*
Review URL: http://codereview.chromium.org/8770023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113354 0039d316-1c4b-4281-b951-d872f2087c98
parent dd3f7778
......@@ -720,6 +720,7 @@
{
'destination': '<(PRODUCT_DIR)',
'files': [
# Keep 'test_case.html.mock-http-headers' with 'test_case.html'.
'../ppapi/tests/test_case.html',
'../ppapi/tests/test_case.html.mock-http-headers',
'../ppapi/tests/test_page.css',
......
This diff is collapsed.
......@@ -159,8 +159,8 @@ int32_t Read(PP_Resource file_io,
offset, bytes_to_read);
if (bytes_to_read < 0)
bytes_to_read = 0;
nacl_abi_size_t buffer_size = bytes_to_read;
return PP_ERROR_FAILED;
nacl_abi_size_t buffer_size = static_cast<nacl_abi_size_t>(bytes_to_read);
int32_t callback_id =
CompletionCallbackTable::Get()->AddCallback(callback, buffer);
......@@ -196,7 +196,7 @@ int32_t Write(PP_Resource file_io,
offset, bytes_to_write);
if (bytes_to_write < 0)
bytes_to_write = 0;
return PP_ERROR_FAILED;
nacl_abi_size_t buffer_size = static_cast<nacl_abi_size_t>(bytes_to_write);
int32_t callback_id =
......
This diff is collapsed.
......@@ -58,13 +58,20 @@ class TestURLLoader : public TestCase {
std::string TestCustomRequestHeader();
std::string TestFailsBogusContentLength();
std::string TestStreamToFile();
std::string TestSameOriginRestriction();
std::string TestCrossOriginRequest();
std::string TestJavascriptURLRestriction();
std::string TestMethodRestriction();
std::string TestHeaderRestriction();
std::string TestCustomReferrer();
std::string TestCustomContentTransferEncoding();
std::string TestUntrustedSameOriginRestriction();
std::string TestTrustedSameOriginRestriction();
std::string TestUntrustedCrossOriginRequest();
std::string TestTrustedCrossOriginRequest();
std::string TestUntrustedJavascriptURLRestriction();
std::string TestTrustedJavascriptURLRestriction();
std::string TestUntrustedMethodRestriction();
std::string TestTrustedMethodRestriction();
std::string TestUntrustedHeaderRestriction();
std::string TestTrustedHeaderRestriction();
std::string TestUntrustedCustomReferrer();
std::string TestTrustedCustomReferrer();
std::string TestUntrustedCustomContentTransferEncoding();
std::string TestTrustedCustomContentTransferEncoding();
std::string TestAuditURLRedirect();
std::string TestAbortCalls();
std::string TestUntendedLoad();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment