Home
last modified time | relevance | path

Searched refs:GOOGLE_CHECK (Results 1 – 25 of 71) sorted by relevance

123

/third_party/protobuf/src/google/protobuf/stubs/
Dlogging.h126 #undef GOOGLE_CHECK
153 #define GOOGLE_CHECK(EXPRESSION) \ macro
155 #define GOOGLE_CHECK_OK(A) GOOGLE_CHECK(::google::protobuf::internal::IsOk(A))
156 #define GOOGLE_CHECK_EQ(A, B) GOOGLE_CHECK((A) == (B))
157 #define GOOGLE_CHECK_NE(A, B) GOOGLE_CHECK((A) != (B))
158 #define GOOGLE_CHECK_LT(A, B) GOOGLE_CHECK((A) < (B))
159 #define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
160 #define GOOGLE_CHECK_GT(A, B) GOOGLE_CHECK((A) > (B))
161 #define GOOGLE_CHECK_GE(A, B) GOOGLE_CHECK((A) >= (B))
181 #define GOOGLE_DCHECK(EXPRESSION) while(false) GOOGLE_CHECK(EXPRESSION)
[all …]
Dmap_util.h77 GOOGLE_CHECK(it != collection.end()) << "Map key not found: " << key;
87 GOOGLE_CHECK(it != collection.end()) << "Map key not found: " << key;
97 GOOGLE_CHECK(it != collection.end()) << "Map key not found";
107 GOOGLE_CHECK(it != collection.end()) << "Map key not found";
211 GOOGLE_CHECK(it != collection.end()) << "key not found: " << key;
340 GOOGLE_CHECK(InsertIfNotPresent(collection, value))
348 GOOGLE_CHECK(InsertIfNotPresent(collection, value)) << "duplicate value.";
357 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data))
367 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data)) << "duplicate key.";
383 GOOGLE_CHECK(res.second) << "duplicate key: " << key;
[all …]
Dtime_test.cc50 GOOGLE_CHECK(DateTimeToSeconds(time, &result)); in CreateTimestamp()
52 GOOGLE_CHECK(SecondsToDateTime(result, &time)); in CreateTimestamp()
53 GOOGLE_CHECK(time.year == year); in CreateTimestamp()
54 GOOGLE_CHECK(time.month == month); in CreateTimestamp()
55 GOOGLE_CHECK(time.day == day); in CreateTimestamp()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message_field.cc388 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateClearingCode()
406 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateMessageClearingCode()
425 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateMergingCode()
440 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateSwappingCode()
447 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateDestructorCode()
463 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateConstructorCode()
471 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateCopyConstructorCode()
484 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateSerializeWithCachedSizesToArray()
495 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateByteSize()
636 GOOGLE_CHECK(IsFieldUsed(descriptor_, options_)); in GenerateClearingCode()
[all …]
Dcpp_message.cc89 GOOGLE_CHECK(!parts.empty()); in ConditionalToCheckBitmasks()
208 GOOGLE_CHECK(!HasHasbit(field)); in EmitFieldNonDefaultCondition()
252 GOOGLE_CHECK(IsMapEntryMessage(descriptor)); in CollectMapInfo()
426 GOOGLE_CHECK(!fields.empty()); in GenChunkMask()
1055 GOOGLE_CHECK(utf8_check == VERIFY); in GenerateClassDefinition()
1082 GOOGLE_CHECK(utf8_check = VERIFY); in GenerateClassDefinition()
1806 GOOGLE_CHECK(!IsMapEntryMessage(field->message_type())); in GenerateFieldMetadata()
2894 GOOGLE_CHECK(!saw_non_zero_init); in GenerateClear()
3257 GOOGLE_CHECK(HasHasbit(field)); in GenerateClassSpecificMergeFrom()
3265 GOOGLE_CHECK(HasHasbit(field)); in GenerateClassSpecificMergeFrom()
[all …]
/third_party/protobuf/src/google/protobuf/testing/
Dgoogletest.cc172 GOOGLE_CHECK(mkdir(name_.c_str(), 0777) == 0) << strerror(errno); in GetTempDir()
207 GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); in CaptureTestStdout()
222 GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); in CaptureTestStderr()
263 GOOGLE_CHECK(active_log_ == NULL); in ScopedMemoryLog()
274 GOOGLE_CHECK(level == ERROR || in GetMessages()
281 GOOGLE_CHECK(active_log_ != NULL); in HandleLog()
Dfile.cc90 GOOGLE_CHECK(ReadFileToString(name, output)) << "Could not read: " << name; in ReadFileToStringOrDie()
114 GOOGLE_CHECK(file != NULL) in WriteStringToFileOrDie()
119 GOOGLE_CHECK(fclose(file) == 0) in WriteStringToFileOrDie()
/third_party/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc117 GOOGLE_CHECK(!is_closed_); in Close()
132 GOOGLE_CHECK(!is_closed_); in Read()
148 GOOGLE_CHECK(!is_closed_); in Skip()
203 GOOGLE_CHECK(!is_closed_); in Close()
219 GOOGLE_CHECK(!is_closed_); in Write()
Dzero_copy_stream_impl_lite.cc142 GOOGLE_CHECK(target_ != NULL); in Next()
174 GOOGLE_CHECK(target_ != NULL); in BackUp()
180 GOOGLE_CHECK(target_ != NULL); in ByteCount()
252 GOOGLE_CHECK(backup_bytes_ == 0 && buffer_.get() != NULL) in BackUp()
Dgzip_stream.cc67 GOOGLE_CHECK(output_buffer_ != NULL); in GzipInputStream()
222 GOOGLE_CHECK(input_buffer_ != NULL); in Init()
/third_party/protobuf/conformance/
Dconformance_cpp.cc174 GOOGLE_CHECK(test_message->SerializeToString( in DoTest()
181 GOOGLE_CHECK(test_message->SerializeToString(&proto_binary)); in DoTest()
196 GOOGLE_CHECK(printer.PrintToString(*test_message, in DoTest()
/third_party/protobuf/benchmarks/util/
Dgogo_data_scrubber.cc15 GOOGLE_CHECK(file.is_open()) << "Couldn't find file '" in ReadFile()
40 GOOGLE_CHECK(dataset.ParseFromString(dataset_payload)) in main()
Dproto3_data_stripper.cc15 GOOGLE_CHECK(file.is_open()) << "Couldn't find file '" in ReadFile()
40 GOOGLE_CHECK(dataset.ParseFromString(dataset_payload)) in main()
/third_party/protobuf/src/google/protobuf/compiler/
Dscc.h102 GOOGLE_CHECK(dep); in DFS()
144 GOOGLE_CHECK(child_msg); in AddChildren()
Dsubprocess.cc168 GOOGLE_CHECK(child_handle_ != NULL) << "Must call Start() first."; in Communicate()
309 GOOGLE_CHECK(pipe(stdin_pipe) != -1); in Start()
310 GOOGLE_CHECK(pipe(stdout_pipe) != -1); in Start()
/third_party/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc113 GOOGLE_CHECK(!key_field_paths_.empty()); in MultipleFieldsMapKeyComparator()
115 GOOGLE_CHECK(!key_field_paths_[i].empty()); in MultipleFieldsMapKeyComparator()
287 GOOGLE_CHECK(comparator) << "Field comparator can't be NULL."; in set_field_comparator()
319 GOOGLE_CHECK(field->is_repeated()) in CheckRepeatedFieldComparisons()
322 GOOGLE_CHECK(key_comparator == NULL) in CheckRepeatedFieldComparisons()
326 GOOGLE_CHECK(repeated_field_comparisons_.find(field) == in CheckRepeatedFieldComparisons()
363 GOOGLE_CHECK(key->containing_type() == field->message_type()) in TreatAsMap()
367 GOOGLE_CHECK(repeated_field_comparisons_.find(field) == in TreatAsMap()
393 GOOGLE_CHECK(field->is_repeated()) in TreatAsMapWithMultipleFieldPathsAsKey()
404 GOOGLE_CHECK(child_field->containing_type() == parent_field->message_type()) in TreatAsMapWithMultipleFieldPathsAsKey()
[all …]
Dfield_mask_util.h66 GOOGLE_CHECK(field_desc != nullptr) in FromFieldNumbers()
108 GOOGLE_CHECK(IsValidPath<T>(path)) << path; in AddPathToFieldMask()
/third_party/protobuf/src/google/protobuf/
Dreflection_internal.h235 GOOGLE_CHECK(this == other_mutator); in Swap()
279 GOOGLE_CHECK(this == other_mutator); in Swap()
343 GOOGLE_CHECK(this == other_mutator); in Swap()
Dmessage.cc130 GOOGLE_CHECK(IsInitialized()) << "Message of type \"" << GetDescriptor()->full_name() in CheckInitialized()
294 GOOGLE_CHECK(field->is_repeated()); in RepeatedFieldAccessor()
Dtest_util2.h46 GOOGLE_CHECK(google3_path.find(prefix) == 0) << google3_path; in TranslatePathToOpensource()
Dextension_set.cc176 GOOGLE_CHECK(type == WireFormatLite::TYPE_MESSAGE || in RegisterMessageExtension()
324 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; \
332 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; \
443 GOOGLE_CHECK(extension != NULL) << "Extension not found."; in MutableRawRepeatedField()
479 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; in GetRepeatedEnum()
486 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; in SetRepeatedEnum()
541 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; in GetRepeatedString()
548 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; in MutableRepeatedString()
752 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; in GetRepeatedMessage()
759 GOOGLE_CHECK(extension != NULL) << "Index out-of-bounds (field is empty)."; in MutableRepeatedMessage()
[all …]
Dno_field_presence_test.cc395 GOOGLE_CHECK(desc_oneof_uint32 != nullptr); in TEST()
396 GOOGLE_CHECK(desc_oneof_nested_message != nullptr); in TEST()
397 GOOGLE_CHECK(desc_oneof_string != nullptr); in TEST()
503 GOOGLE_CHECK(field != nullptr); in TEST()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc134 GOOGLE_CHECK(file_proto_desc) in CollectExtensions()
143 GOOGLE_CHECK(dynamic_file_proto.get() != NULL); in CollectExtensions()
144 GOOGLE_CHECK(dynamic_file_proto->ParseFromString(file_data)); in CollectExtensions()
150 GOOGLE_CHECK(CollectExtensions(*dynamic_file_proto, extensions)) in CollectExtensions()
Djava_message_builder_lite.cc67 GOOGLE_CHECK(!HasDescriptorMethods(descriptor->file(), context->EnforceLite())) in MessageBuilderLiteGenerator()
/third_party/protobuf/benchmarks/cpp/
Dcpp_benchmark.cc196 GOOGLE_CHECK(file.is_open()) << "Couldn't find file '" << name << in ReadFile()
218 GOOGLE_CHECK(dataset.ParseFromString(dataset_bytes)); in RegisterBenchmarks()

123