OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
7 #include <stdio.h> | 8 #include <stdio.h> |
8 #include <string.h> | 9 #include <string.h> |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
12 #include "ppapi/c/ppb_file_io.h" | 13 #include "ppapi/c/ppb_file_io.h" |
13 #include "ppapi/c/ppb_url_loader.h" | 14 #include "ppapi/c/ppb_url_loader.h" |
14 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 15 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
15 #include "ppapi/cpp/dev/url_util_dev.h" | 16 #include "ppapi/cpp/dev/url_util_dev.h" |
16 #include "ppapi/cpp/file_io.h" | 17 #include "ppapi/cpp/file_io.h" |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 std::string TestURLLoader::TestXRequestedWithHeader() { | 874 std::string TestURLLoader::TestXRequestedWithHeader() { |
874 pp::URLRequestInfo request(instance_); | 875 pp::URLRequestInfo request(instance_); |
875 request.SetURL("/echoheader?X-Requested-With"); | 876 request.SetURL("/echoheader?X-Requested-With"); |
876 // The name and version of the plugin is set from the command-line (see | 877 // The name and version of the plugin is set from the command-line (see |
877 // chrome/test/ppapi/ppapi_test.cc. | 878 // chrome/test/ppapi/ppapi_test.cc. |
878 return LoadAndCompareBody(request, "PPAPITests/1.2.3"); | 879 return LoadAndCompareBody(request, "PPAPITests/1.2.3"); |
879 } | 880 } |
880 | 881 |
881 // TODO(viettrungluu): Add tests for Get{Upload,Download}Progress, Close | 882 // TODO(viettrungluu): Add tests for Get{Upload,Download}Progress, Close |
882 // (including abort tests if applicable). | 883 // (including abort tests if applicable). |
OLD | NEW |