Home
last modified time | relevance | path

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

123

/external/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()
/external/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()
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc115 GOOGLE_CHECK(!is_closed_); in Close()
130 GOOGLE_CHECK(!is_closed_); in Read()
146 GOOGLE_CHECK(!is_closed_); in Skip()
201 GOOGLE_CHECK(!is_closed_); in Close()
217 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()
/external/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()
/external/protobuf/conformance/
Dconformance_cpp.cc198 GOOGLE_CHECK(test_message->SerializeToString(response->mutable_protobuf_payload())); in DoTest()
204 GOOGLE_CHECK(test_message->SerializeToString(&proto_binary)); in DoTest()
219 GOOGLE_CHECK(printer.PrintToString(*test_message, in DoTest()
Dconformance_test.cc213 GOOGLE_CHECK( in RunValidInputTest()
241 GOOGLE_CHECK( in VerifyResponse()
/external/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()
310 GOOGLE_CHECK(pipe(stdin_pipe) != -1); in Start()
311 GOOGLE_CHECK(pipe(stdout_pipe) != -1); in Start()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_map_field.cc75 GOOGLE_CHECK(message->options().map_entry()); in KeyField()
82 GOOGLE_CHECK(message->options().map_entry()); in ValueField()
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc115 GOOGLE_CHECK(!key_field_paths_.empty()); in MultipleFieldsMapKeyComparator()
117 GOOGLE_CHECK(!key_field_paths_[i].empty()); in MultipleFieldsMapKeyComparator()
289 GOOGLE_CHECK(comparator) << "Field comparator can't be NULL."; in set_field_comparator()
316 GOOGLE_CHECK(field->is_repeated()) in CheckRepeatedFieldComparisons()
319 GOOGLE_CHECK(key_comparator == NULL) in CheckRepeatedFieldComparisons()
323 GOOGLE_CHECK(repeated_field_comparisons_.find(field) == in CheckRepeatedFieldComparisons()
360 GOOGLE_CHECK(key->containing_type() == field->message_type()) in TreatAsMap()
364 GOOGLE_CHECK(repeated_field_comparisons_.find(field) == in TreatAsMap()
390 GOOGLE_CHECK(field->is_repeated()) in TreatAsMapWithMultipleFieldPathsAsKey()
401 GOOGLE_CHECK(child_field->containing_type() == parent_field->message_type()) in TreatAsMapWithMultipleFieldPathsAsKey()
[all …]
/external/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()
Dtest_util2.h47 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()
504 GOOGLE_CHECK(field != nullptr); in TEST()
Dmessage.cc131 GOOGLE_CHECK(IsInitialized()) << "Message of type \"" << GetDescriptor()->full_name() in CheckInitialized()
488 GOOGLE_CHECK(descriptor_) << msg->GetTypeName(); in _InternalParse()
489 GOOGLE_CHECK(reflection_) << msg->GetTypeName(); in _InternalParse()
680 GOOGLE_CHECK(field->is_repeated()); in RepeatedFieldAccessor()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc130 GOOGLE_CHECK(file_proto_desc) in CollectExtensions()
139 GOOGLE_CHECK(dynamic_file_proto.get() != NULL); in CollectExtensions()
140 GOOGLE_CHECK(dynamic_file_proto->ParseFromString(file_data)); in CollectExtensions()
146 GOOGLE_CHECK(CollectExtensions(*dynamic_file_proto, extensions)) in CollectExtensions()
Djava_message_builder_lite.cc68 GOOGLE_CHECK(!HasDescriptorMethods(descriptor->file(), context->EnforceLite())) in MessageBuilderLiteGenerator()
/external/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()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc211 GOOGLE_CHECK(IsMapEntryMessage(descriptor)); in CollectMapInfo()
462 GOOGLE_CHECK(!fields.empty()); in GenChunkMask()
981 GOOGLE_CHECK(suffix == "UTF8Verify"); in GenerateClassDefinition()
1007 GOOGLE_CHECK(suffix == "UTF8Verify"); in GenerateClassDefinition()
1756 GOOGLE_CHECK(!IsMapEntryMessage(field->message_type())); in GenerateFieldMetadata()
2828 GOOGLE_CHECK(!CanInitializeByZeroing(next_field)); in GenerateClear()
2841 GOOGLE_CHECK(!chunk.empty()); in GenerateClear()
3144 GOOGLE_CHECK(!chunk.empty()); in GenerateMergeFrom()
3680 GOOGLE_CHECK(!fields.empty()); in GenerateSerializeOneofFields()
3816 GOOGLE_CHECK(UseUnknownFieldSet(descriptor_->file(), options_)); in GenerateSerializeWithCachedSizesToArray()
[all …]

123