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 // Tests PPB_URLRequestInfo interface. | 5 // Tests PPB_URLRequestInfo interface. |
6 | 6 |
7 #include "ppapi/tests/test_url_request.h" | 7 #include "ppapi/tests/test_url_request.h" |
8 | 8 |
| 9 #include <stddef.h> |
| 10 #include <stdint.h> |
9 #include <string.h> | 11 #include <string.h> |
10 #include <string> | 12 #include <string> |
11 | 13 |
12 #include "ppapi/c/ppb_file_io.h" | 14 #include "ppapi/c/ppb_file_io.h" |
13 #include "ppapi/cpp/completion_callback.h" | 15 #include "ppapi/cpp/completion_callback.h" |
14 #include "ppapi/cpp/file_io.h" | 16 #include "ppapi/cpp/file_io.h" |
15 #include "ppapi/cpp/file_ref.h" | 17 #include "ppapi/cpp/file_ref.h" |
16 #include "ppapi/cpp/file_system.h" | 18 #include "ppapi/cpp/file_system.h" |
17 #include "ppapi/cpp/instance.h" | 19 #include "ppapi/cpp/instance.h" |
18 #include "ppapi/cpp/var.h" | 20 #include "ppapi/cpp/var.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 } | 463 } |
462 } | 464 } |
463 for (int i = 0; i < num_created; i++) { | 465 for (int i = 0; i < num_created; i++) { |
464 ppb_core_interface_->ReleaseResource(url_request_info[i]); | 466 ppb_core_interface_->ReleaseResource(url_request_info[i]); |
465 if (PP_TRUE == | 467 if (PP_TRUE == |
466 ppb_url_request_interface_->IsURLRequestInfo(url_request_info[i])) | 468 ppb_url_request_interface_->IsURLRequestInfo(url_request_info[i])) |
467 error = "IsURLREquestInfo() succeeded after release"; | 469 error = "IsURLREquestInfo() succeeded after release"; |
468 } | 470 } |
469 return error; // == PASS() if empty. | 471 return error; // == PASS() if empty. |
470 } | 472 } |
OLD | NEW |