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

Unified Diff: ppapi/tests/test_url_loader.cc

Issue 8536031: Reland http://codereview.chromium.org/8477015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge AGAIN 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_url_loader.h ('k') | ppapi/tests/test_url_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_url_loader.cc
diff --git a/ppapi/tests/test_url_loader.cc b/ppapi/tests/test_url_loader.cc
index e7334d568dcf9babfdf50a533471b93f8a3324c0..edbbbbfe4ebf67daaeeac184555bc2d386bd8ea7 100644
--- a/ppapi/tests/test_url_loader.cc
+++ b/ppapi/tests/test_url_loader.cc
@@ -77,30 +77,30 @@ bool TestURLLoader::Init() {
return InitTestingInterface() && EnsureRunningOverHTTP();
}
-void TestURLLoader::RunTest() {
- RUN_TEST_FORCEASYNC_AND_NOT(BasicGET);
- RUN_TEST_FORCEASYNC_AND_NOT(BasicPOST);
- RUN_TEST_FORCEASYNC_AND_NOT(BasicFilePOST);
- RUN_TEST_FORCEASYNC_AND_NOT(BasicFileRangePOST);
- RUN_TEST_FORCEASYNC_AND_NOT(CompoundBodyPOST);
- RUN_TEST_FORCEASYNC_AND_NOT(EmptyDataPOST);
- RUN_TEST_FORCEASYNC_AND_NOT(BinaryDataPOST);
- RUN_TEST_FORCEASYNC_AND_NOT(CustomRequestHeader);
- RUN_TEST_FORCEASYNC_AND_NOT(FailsBogusContentLength);
+void TestURLLoader::RunTests(const std::string& filter) {
+ RUN_TEST_FORCEASYNC_AND_NOT(BasicGET, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(BasicPOST, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(BasicFilePOST, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(BasicFileRangePOST, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(CompoundBodyPOST, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(EmptyDataPOST, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(BinaryDataPOST, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(CustomRequestHeader, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(FailsBogusContentLength, filter);
// Disable portion of test which failes when the HTTP server's
// data_dir is moved to PRODUCT_DIR.
// see: http://code.google.com/p/chromium/issues/detail?id=103690
-// RUN_TEST_FORCEASYNC_AND_NOT(SameOriginRestriction);
-// RUN_TEST_FORCEASYNC_AND_NOT(CrossOriginRequest);
- RUN_TEST_FORCEASYNC_AND_NOT(JavascriptURLRestriction);
- RUN_TEST_FORCEASYNC_AND_NOT(MethodRestriction);
- RUN_TEST_FORCEASYNC_AND_NOT(HeaderRestriction);
- RUN_TEST_FORCEASYNC_AND_NOT(CustomReferrer);
- RUN_TEST_FORCEASYNC_AND_NOT(CustomContentTransferEncoding);
- RUN_TEST_FORCEASYNC_AND_NOT(StreamToFile);
- RUN_TEST_FORCEASYNC_AND_NOT(AuditURLRedirect);
- RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls);
- RUN_TEST_FORCEASYNC_AND_NOT(UntendedLoad);
+// RUN_TEST_FORCEASYNC_AND_NOT(SameOriginRestriction, filter);
+// RUN_TEST_FORCEASYNC_AND_NOT(CrossOriginRequest, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(JavascriptURLRestriction, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(MethodRestriction, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(HeaderRestriction, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(CustomReferrer, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(CustomContentTransferEncoding, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(StreamToFile, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(AuditURLRedirect, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(UntendedLoad, filter);
}
std::string TestURLLoader::ReadEntireFile(pp::FileIO* file_io,
« no previous file with comments | « ppapi/tests/test_url_loader.h ('k') | ppapi/tests/test_url_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698