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

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

Issue 8585003: 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
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | tools/valgrind/gtest_exclude/ui_tests.gtest.txt » ('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) 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::RunTests(const std::string& filter) { 80 void TestURLLoader::RunTests(const std::string& filter) {
81 RUN_TEST_FORCEASYNC_AND_NOT(BasicGET, filter); 81 RUN_TEST_FORCEASYNC_AND_NOT(BasicGET, filter);
82 RUN_TEST_FORCEASYNC_AND_NOT(BasicPOST, filter); 82 RUN_TEST_FORCEASYNC_AND_NOT(BasicPOST, filter);
83 RUN_TEST_FORCEASYNC_AND_NOT(BasicFilePOST, filter); 83 RUN_TEST_FORCEASYNC_AND_NOT(BasicFilePOST, filter);
84 RUN_TEST_FORCEASYNC_AND_NOT(BasicFileRangePOST, filter); 84 RUN_TEST_FORCEASYNC_AND_NOT(BasicFileRangePOST, filter);
85 RUN_TEST_FORCEASYNC_AND_NOT(CompoundBodyPOST, filter); 85 RUN_TEST_FORCEASYNC_AND_NOT(CompoundBodyPOST, filter);
86 RUN_TEST_FORCEASYNC_AND_NOT(EmptyDataPOST, filter); 86 RUN_TEST_FORCEASYNC_AND_NOT(EmptyDataPOST, filter);
87 RUN_TEST_FORCEASYNC_AND_NOT(BinaryDataPOST, filter); 87 RUN_TEST_FORCEASYNC_AND_NOT(BinaryDataPOST, filter);
88 RUN_TEST_FORCEASYNC_AND_NOT(CustomRequestHeader, filter); 88 RUN_TEST_FORCEASYNC_AND_NOT(CustomRequestHeader, filter);
89 RUN_TEST_FORCEASYNC_AND_NOT(FailsBogusContentLength, filter); 89 RUN_TEST_FORCEASYNC_AND_NOT(FailsBogusContentLength, filter);
90 RUN_TEST_FORCEASYNC_AND_NOT(SameOriginRestriction, filter); 90 // Disable portion of test which fails when the HTTP server's
91 RUN_TEST_FORCEASYNC_AND_NOT(CrossOriginRequest, filter); 91 // data_dir is moved to PRODUCT_DIR.
92 // http://code.google.com/p/chromium/issues/detail?id=103690
93 // RUN_TEST_FORCEASYNC_AND_NOT(SameOriginRestriction, filter);
94 // RUN_TEST_FORCEASYNC_AND_NOT(CrossOriginRequest, filter);
92 RUN_TEST_FORCEASYNC_AND_NOT(JavascriptURLRestriction, filter); 95 RUN_TEST_FORCEASYNC_AND_NOT(JavascriptURLRestriction, filter);
93 RUN_TEST_FORCEASYNC_AND_NOT(MethodRestriction, filter); 96 RUN_TEST_FORCEASYNC_AND_NOT(MethodRestriction, filter);
94 RUN_TEST_FORCEASYNC_AND_NOT(HeaderRestriction, filter); 97 RUN_TEST_FORCEASYNC_AND_NOT(HeaderRestriction, filter);
95 RUN_TEST_FORCEASYNC_AND_NOT(CustomReferrer, filter); 98 RUN_TEST_FORCEASYNC_AND_NOT(CustomReferrer, filter);
96 RUN_TEST_FORCEASYNC_AND_NOT(CustomContentTransferEncoding, filter); 99 RUN_TEST_FORCEASYNC_AND_NOT(CustomContentTransferEncoding, filter);
97 RUN_TEST_FORCEASYNC_AND_NOT(StreamToFile, filter); 100 RUN_TEST_FORCEASYNC_AND_NOT(StreamToFile, filter);
98 RUN_TEST_FORCEASYNC_AND_NOT(AuditURLRedirect, filter); 101 RUN_TEST_FORCEASYNC_AND_NOT(AuditURLRedirect, filter);
99 RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls, filter); 102 RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls, filter);
100 RUN_TEST_FORCEASYNC_AND_NOT(UntendedLoad, filter); 103 RUN_TEST_FORCEASYNC_AND_NOT(UntendedLoad, filter);
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
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | tools/valgrind/gtest_exclude/ui_tests.gtest.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698