Home
last modified time | relevance | path

Searched refs:error_collector (Results 1 – 18 of 18) sorted by relevance

/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_pool.cc111 cpool->error_collector = nullptr; in _CreateDescriptorPool()
160 cpool->error_collector = new BuildFileErrorCollector(); in PyDescriptorPool_NewWithDatabase()
161 cpool->pool = new DescriptorPool(database, cpool->error_collector); in PyDescriptorPool_NewWithDatabase()
204 delete self->error_collector; in Dealloc()
222 BuildFileErrorCollector* error_collector = in SetErrorFromCollector() local
224 if (error_collector && !error_collector->error_message.empty()) { in SetErrorFromCollector()
226 error_type, name, error_collector->error_message.c_str()); in SetErrorFromCollector()
227 error_collector->Clear(); in SetErrorFromCollector()
247 reinterpret_cast<PyDescriptorPool*>(self)->error_collector, name, in FindMessageByName()
270 return SetErrorFromCollector(py_pool->error_collector, name, "file"); in FindFileByName()
[all …]
Ddescriptor_pool.h64 DescriptorPool::ErrorCollector* error_collector; member
/third_party/protobuf/src/google/protobuf/io/
Dtokenizer_unittest.cc252 TestErrorCollector error_collector; in TEST_2D() local
253 Tokenizer tokenizer(&input, &error_collector); in TEST_2D()
287 EXPECT_TRUE(error_collector.text_.empty()); in TEST_2D()
296 TestErrorCollector error_collector; in TEST_1D() local
297 Tokenizer tokenizer(&input, &error_collector); in TEST_1D()
317 EXPECT_TRUE(error_collector.text_.empty()); in TEST_1D()
435 TestErrorCollector error_collector; in TEST_2D() local
436 Tokenizer tokenizer(&input, &error_collector); in TEST_2D()
479 EXPECT_TRUE(error_collector.text_.empty()); in TEST_2D()
500 TestErrorCollector error_collector; in TEST_1D() local
[all …]
Dtokenizer.h99 Tokenizer(ZeroCopyInputStream* input, ErrorCollector* error_collector);
Dtokenizer.cc196 ErrorCollector* error_collector) in Tokenizer() argument
198 error_collector_(error_collector), in Tokenizer()
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_bootstrap_unittest.cc139 MockErrorCollector error_collector; in TEST() local
141 Importer importer(&source_tree, &error_collector); in TEST()
186 EXPECT_EQ("", error_collector.text_); in TEST()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_bootstrap_unittest.cc155 MockErrorCollector error_collector; in TEST() local
156 Importer importer(&source_tree, &error_collector); in TEST()
162 EXPECT_EQ("", error_collector.text_); in TEST()
Dcpp_unittest.inc116 MockErrorCollector error_collector;
119 Importer importer(&source_tree, &error_collector);
124 EXPECT_EQ("", error_collector.text_);
/third_party/protobuf/src/google/protobuf/compiler/
Dimporter.h94 void RecordErrorsTo(MultiFileErrorCollector* error_collector) { in RecordErrorsTo() argument
95 error_collector_ = error_collector; in RecordErrorsTo()
159 Importer(SourceTree* source_tree, MultiFileErrorCollector* error_collector);
Dparser.h92 void RecordErrorsTo(io::ErrorCollector* error_collector) { in RecordErrorsTo() argument
93 error_collector_ = error_collector; in RecordErrorsTo()
Dimporter.cc221 MultiFileErrorCollector* error_collector) in Importer() argument
225 database_.RecordErrorsTo(error_collector); in Importer()
Dcommand_line_interface.cc854 std::unique_ptr<ErrorPrinter> error_collector; in Run() local
898 error_collector.reset(new ErrorPrinter(error_format_)); in Run()
900 error_collector.get())); in Run()
908 error_collector.reset( in Run()
913 source_tree_database->RecordErrorsTo(error_collector.get()); in Run()
1018 if (error_collector->FoundErrors()) { in Run()
2285 ErrorPrinter error_collector(error_format_); in EncodeOrDecode() local
2287 parser.RecordErrorsTo(&error_collector); in EncodeOrDecode()
/third_party/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc595 SimpleErrorCollector error_collector; in TEST_F() local
596 io::Tokenizer tokenizer(&input_stream, &error_collector); in TEST_F()
598 parser.RecordErrorsTo(&error_collector); in TEST_F()
601 << error_collector.last_error() << "\n" in TEST_F()
603 ASSERT_EQ("", error_collector.last_error()); in TEST_F()
3499 MockErrorCollector error_collector; in TEST() local
3500 EXPECT_FALSE(pool.BuildFileCollectingErrors(file_proto, &error_collector)); in TEST()
3505 error_collector.text_); in TEST()
3658 MockErrorCollector error_collector; in BuildFileWithErrors() local
3659 EXPECT_TRUE(pool_.BuildFileCollectingErrors(file_proto, &error_collector) == in BuildFileWithErrors()
[all …]
Dtext_format.h542 void RecordErrorsTo(io::ErrorCollector* error_collector) { in RecordErrorsTo() argument
543 error_collector_ = error_collector; in RecordErrorsTo()
Dtext_format_unittest.cc1408 MockErrorCollector error_collector; in ExpectMessage() local
1409 parser_.RecordErrorsTo(&error_collector); in ExpectMessage()
1414 error_collector.text_); in ExpectMessage()
1420 MockErrorCollector error_collector; in ExpectSuccessAndTree() local
1421 parser_.RecordErrorsTo(&error_collector); in ExpectSuccessAndTree()
Dtext_format.cc241 io::ErrorCollector* error_collector, in ParserImpl() argument
248 : error_collector_(error_collector), in ParserImpl()
1405 io::ErrorCollector* error_collector) { in CheckParseInputSize() argument
1407 error_collector->AddError( in CheckParseInputSize()
Ddescriptor.h1660 ErrorCollector* error_collector = nullptr);
1778 const FileDescriptorProto& proto, ErrorCollector* error_collector);
Ddescriptor.cc1261 ErrorCollector* error_collector) in DescriptorPool() argument
1264 default_error_collector_(error_collector), in DescriptorPool()
3141 DescriptorPool::ErrorCollector* error_collector);
3582 const FileDescriptorProto& proto, ErrorCollector* error_collector) { in BuildFileCollectingErrors() argument
3590 return DescriptorBuilder(this, tables_.get(), error_collector) in BuildFileCollectingErrors()
3611 DescriptorPool::ErrorCollector* error_collector) in DescriptorBuilder() argument
3614 error_collector_(error_collector), in DescriptorBuilder()