Home
last modified time | relevance | path

Searched refs:proto_path (Results 1 – 4 of 4) sorted by relevance

/tools/test/connectivity/acts/framework/acts/libs/proto/
Dproto_utils.py25 def compile_proto(proto_path, output_dir): argument
43 if not os.path.exists(proto_path):
44 logging.error('Can\'t find required file: %s\n' % proto_path)
53 input_dir = os.path.dirname(proto_path)
54 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py')
60 proto_path
70 def compile_import_proto(output_dir, proto_path): argument
79 output_module_name = compile_proto(proto_path, output_dir)
/tools/test/connectivity/acts/framework/tests/metrics/
Dlogger_test.py80 proto_path = 'dir/my_proto.proto'
82 MetricLogger._compile_proto(proto_path, compiler_out=compiler_out)
91 proto_path = '/abs/path/to/my_proto.proto'
93 MetricLogger._compile_proto(proto_path, compiler_out=compiler_out)
95 compile_import_proto.assert_called_once_with(compiler_out, proto_path)
107 proto_path = '/abs/path/to/my_proto.proto'
108 MetricLogger._compile_proto(proto_path)
110 compile_import_proto.assert_called_once_with(compiler_out, proto_path)
/tools/test/connectivity/acts/framework/tests/
Dacts_proto_utils_test.py64 proto_path = self.getResource(TEST_PROTO_NAME)
65 output_module_name = compile_proto(proto_path, self.tmp_dir)
86 proto_path = self.getResource(TEST_PROTO_NAME)
87 output_module = compile_import_proto(self.tmp_dir, proto_path)
/tools/test/connectivity/acts/framework/acts/metrics/
Dlogger.py128 def _compile_proto(cls, proto_path, compiler_out=None): argument
140 if path.isabs(proto_path):
141 abs_proto_path = proto_path
145 abs_proto_path = path.normpath(path.join(base_dir, proto_path))