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

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

Issue 8539019: Test NaCl version of ppapi_tests via ui_tests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« ppapi/ppapi_tests.gypi ('K') | « ppapi/ppapi_tests.gypi ('k') | no next file » | 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) 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 #include "ppapi/tests/test_url_loader.h" 5 #include "ppapi/tests/test_url_loader.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void TestURLLoader::RunTest() { 80 void TestURLLoader::RunTest() {
81 RUN_TEST_FORCEASYNC_AND_NOT(BasicGET); 81 RUN_TEST_FORCEASYNC_AND_NOT(BasicGET);
82 RUN_TEST_FORCEASYNC_AND_NOT(BasicPOST); 82 RUN_TEST_FORCEASYNC_AND_NOT(BasicPOST);
83 RUN_TEST_FORCEASYNC_AND_NOT(BasicFilePOST); 83 RUN_TEST_FORCEASYNC_AND_NOT(BasicFilePOST);
84 RUN_TEST_FORCEASYNC_AND_NOT(BasicFileRangePOST); 84 RUN_TEST_FORCEASYNC_AND_NOT(BasicFileRangePOST);
85 RUN_TEST_FORCEASYNC_AND_NOT(CompoundBodyPOST); 85 RUN_TEST_FORCEASYNC_AND_NOT(CompoundBodyPOST);
86 RUN_TEST_FORCEASYNC_AND_NOT(EmptyDataPOST); 86 RUN_TEST_FORCEASYNC_AND_NOT(EmptyDataPOST);
87 RUN_TEST_FORCEASYNC_AND_NOT(BinaryDataPOST); 87 RUN_TEST_FORCEASYNC_AND_NOT(BinaryDataPOST);
88 RUN_TEST_FORCEASYNC_AND_NOT(CustomRequestHeader); 88 RUN_TEST_FORCEASYNC_AND_NOT(CustomRequestHeader);
89 RUN_TEST_FORCEASYNC_AND_NOT(FailsBogusContentLength); 89 RUN_TEST_FORCEASYNC_AND_NOT(FailsBogusContentLength);
90 RUN_TEST_FORCEASYNC_AND_NOT(SameOriginRestriction); 90 // Disable portion of test which failes when the HTTP server's
dmichael (off chromium) 2011/11/11 23:20:18 nit: failes->fails
91 RUN_TEST_FORCEASYNC_AND_NOT(CrossOriginRequest); 91 // data_dir is moved to PRODUCT_DIR.
92 // see: http://code.google.com/p/chromium/issues/detail?id=103690
93 // RUN_TEST_FORCEASYNC_AND_NOT(SameOriginRestriction);
94 // RUN_TEST_FORCEASYNC_AND_NOT(CrossOriginRequest);
92 RUN_TEST_FORCEASYNC_AND_NOT(JavascriptURLRestriction); 95 RUN_TEST_FORCEASYNC_AND_NOT(JavascriptURLRestriction);
93 RUN_TEST_FORCEASYNC_AND_NOT(MethodRestriction); 96 RUN_TEST_FORCEASYNC_AND_NOT(MethodRestriction);
94 RUN_TEST_FORCEASYNC_AND_NOT(HeaderRestriction); 97 RUN_TEST_FORCEASYNC_AND_NOT(HeaderRestriction);
95 RUN_TEST_FORCEASYNC_AND_NOT(CustomReferrer); 98 RUN_TEST_FORCEASYNC_AND_NOT(CustomReferrer);
96 RUN_TEST_FORCEASYNC_AND_NOT(CustomContentTransferEncoding); 99 RUN_TEST_FORCEASYNC_AND_NOT(CustomContentTransferEncoding);
97 RUN_TEST_FORCEASYNC_AND_NOT(StreamToFile); 100 RUN_TEST_FORCEASYNC_AND_NOT(StreamToFile);
98 RUN_TEST_FORCEASYNC_AND_NOT(AuditURLRedirect); 101 RUN_TEST_FORCEASYNC_AND_NOT(AuditURLRedirect);
99 RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls); 102 RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls);
100 RUN_TEST_FORCEASYNC_AND_NOT(UntendedLoad); 103 RUN_TEST_FORCEASYNC_AND_NOT(UntendedLoad);
101 } 104 }
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 if (!error.empty()) 759 if (!error.empty())
757 return error; 760 return error;
758 if (body != "hello\n") 761 if (body != "hello\n")
759 return ReportError("Couldn't read data", rv); 762 return ReportError("Couldn't read data", rv);
760 763
761 PASS(); 764 PASS();
762 } 765 }
763 766
764 // TODO(viettrungluu): Add tests for FollowRedirect, 767 // TODO(viettrungluu): Add tests for FollowRedirect,
765 // Get{Upload,Download}Progress, Close (including abort tests if applicable). 768 // Get{Upload,Download}Progress, Close (including abort tests if applicable).
OLDNEW
« ppapi/ppapi_tests.gypi ('K') | « ppapi/ppapi_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698