| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # distutils: language = c++ | 5 # distutils: language = c++ |
| 6 | 6 |
| 7 from libc.stdint cimport uint8_t | 7 from libc.stdint cimport uint8_t |
| 8 from libcpp cimport bool | 8 from libcpp cimport bool |
| 9 from libcpp.string cimport string | 9 from libcpp.string cimport string |
| 10 from libcpp.vector cimport vector | 10 from libcpp.vector cimport vector |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 self.error_message = error_message | 26 self.error_message = error_message |
| 27 | 27 |
| 28 def ParseData(value): | 28 def ParseData(value): |
| 29 cdef string value_as_string = value | 29 cdef string value_as_string = value |
| 30 cdef vector[uint8_t] data_as_vector | 30 cdef vector[uint8_t] data_as_vector |
| 31 cdef size_t num_handles | 31 cdef size_t num_handles |
| 32 cdef string error_message | 32 cdef string error_message |
| 33 ParseValidationTestInput( | 33 ParseValidationTestInput( |
| 34 value, &data_as_vector, &num_handles, &error_message) | 34 value, &data_as_vector, &num_handles, &error_message) |
| 35 return Data(bytearray(data_as_vector), num_handles, error_message) | 35 return Data(bytearray(data_as_vector), num_handles, error_message) |
| OLD | NEW |