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

Side by Side Diff: mojo/python/system/mojo_tests/validation_util.pyx

Issue 843523002: Delete empty mojo python package, and prefix all python packages with mojo_ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
OLDNEW
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698