Index: ppapi/tests/test_url_loader.cc |
diff --git a/ppapi/tests/test_url_loader.cc b/ppapi/tests/test_url_loader.cc |
index 90244912681fc7c77d24b1746db811fa62ff8205..889a4d0ffba67aaf6d5175311dad6e12bc501334 100644 |
--- a/ppapi/tests/test_url_loader.cc |
+++ b/ppapi/tests/test_url_loader.cc |
@@ -841,5 +841,17 @@ std::string TestURLLoader::TestPrefetchBufferThreshold() { |
PASS(); |
} |
+// TODO(viettrungluu): This test properly belongs elsewhere. It tests that |
+// Chrome properly tags URL requests made on behalf of Pepper plugins (with an |
+// X-Requested-With header), but this isn't, strictly speaking, a PPAPI |
+// behavior. |
+std::string TestURLLoader::TestXRequestedWithHeader() { |
+ pp::URLRequestInfo request(instance_); |
+ request.SetURL("/echoheader?X-Requested-With"); |
+ // The name and version of the plugin is set from the command-line (see |
+ // chrome/test/ppapi/ppapi_test.cc. |
+ return LoadAndCompareBody(request, "PPAPI Tests 1.2.3"); |
+} |
+ |
// TODO(viettrungluu): Add tests for Get{Upload,Download}Progress, Close |
// (including abort tests if applicable). |