Home
last modified time | relevance | path

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

12

/external/protobuf/src/google/protobuf/testing/
Dgoogletest.cc125 GOOGLE_CHECK(mkdir(name_.c_str(), 0777) == 0) << strerror(errno); in GetTempDir()
160 GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); in CaptureTestStdout()
175 GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); in CaptureTestStderr()
216 GOOGLE_CHECK(active_log_ == NULL); in ScopedMemoryLog()
227 GOOGLE_CHECK(level == ERROR || in GetMessages()
234 GOOGLE_CHECK(active_log_ != NULL); in HandleLog()
Dfile.cc82 GOOGLE_CHECK(ReadFileToString(name, output)) << "Could not read: " << name; in ReadFileToStringOrDie()
105 GOOGLE_CHECK(file != NULL) in WriteStringToFileOrDie()
110 GOOGLE_CHECK(fclose(file) == 0) in WriteStringToFileOrDie()
/external/protobuf/src/google/protobuf/stubs/
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";
357 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data))
368 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data)) << "duplicate key.";
384 GOOGLE_CHECK(res.second) << "duplicate key: " << key;
682 GOOGLE_CHECK(key_container != NULL);
696 GOOGLE_CHECK(key_container != NULL);
713 GOOGLE_CHECK(key_container != NULL);
[all …]
Dcommon.h687 #undef GOOGLE_CHECK
713 #define GOOGLE_CHECK(EXPRESSION) \ macro
715 #define GOOGLE_CHECK_OK(A) GOOGLE_CHECK(A)
716 #define GOOGLE_CHECK_EQ(A, B) GOOGLE_CHECK((A) == (B))
717 #define GOOGLE_CHECK_NE(A, B) GOOGLE_CHECK((A) != (B))
718 #define GOOGLE_CHECK_LT(A, B) GOOGLE_CHECK((A) < (B))
719 #define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
720 #define GOOGLE_CHECK_GT(A, B) GOOGLE_CHECK((A) > (B))
721 #define GOOGLE_CHECK_GE(A, B) GOOGLE_CHECK((A) >= (B))
740 #define GOOGLE_DCHECK(EXPRESSION) while(false) GOOGLE_CHECK(EXPRESSION)
[all …]
Dstrutil.cc241 GOOGLE_CHECK(result != NULL); in JoinStringsIterator()
443 GOOGLE_CHECK(dest); in UnescapeCEscapeString()
809 GOOGLE_CHECK(i >= 0) << "FastHexToBuffer() wants non-negative integers, not " << i; in FastHexToBuffer()
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc123 GOOGLE_CHECK(!is_closed_); in Close()
138 GOOGLE_CHECK(!is_closed_); in Read()
154 GOOGLE_CHECK(!is_closed_); in Skip()
221 GOOGLE_CHECK(!is_closed_); in Close()
237 GOOGLE_CHECK(!is_closed_); in Write()
Dgzip_stream.cc66 GOOGLE_CHECK(output_buffer_ != NULL); in GzipInputStream()
210 GOOGLE_CHECK(input_buffer_ != NULL); in Init()
Dzero_copy_stream_impl_lite.cc268 GOOGLE_CHECK(backup_bytes_ == 0 && buffer_.get() != NULL) in BackUp()
/external/protobuf/src/google/protobuf/
Dlite_unittest.cc49 GOOGLE_CHECK(message.optional_int32() == 3); in ExpectMessageMerged()
50 GOOGLE_CHECK(message.optional_int64() == 2); in ExpectMessageMerged()
51 GOOGLE_CHECK(message.optional_string() == "hello"); in ExpectMessageMerged()
144 GOOGLE_CHECK(packed_extensions_data == packed_data); in main()
201 GOOGLE_CHECK(parsing_merge.repeated_all_types_size() == 3); in main()
202 GOOGLE_CHECK(parsing_merge.repeatedgroup_size() == 3); in main()
203 GOOGLE_CHECK(parsing_merge.ExtensionSize( in main()
Dwire_format_lite.cc377 GOOGLE_CHECK(value.size() <= kint32max); in WriteString()
386 GOOGLE_CHECK(value.size() <= kint32max); in WriteStringMaybeAliased()
393 GOOGLE_CHECK(value.size() <= kint32max); in WriteBytes()
401 GOOGLE_CHECK(value.size() <= kint32max); in WriteBytesMaybeAliased()
Dextension_set.cc166 GOOGLE_CHECK(type == WireFormatLite::TYPE_MESSAGE || in RegisterMessageExtension()
282 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; \
290 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; \
389 GOOGLE_CHECK(iter == extensions_.end()) << "Extension not found."; in MutableRawRepeatedField()
426 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedEnum()
433 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in SetRepeatedEnum()
487 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedString()
494 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in MutableRepeatedString()
619 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedMessage()
626 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in MutableRepeatedMessage()
[all …]
Drepeated_field_reflection_unittest.cc175 GOOGLE_CHECK(fd_repeated_int64_extension != NULL); in TEST()
Ddescriptor.cc1018 GOOGLE_CHECK(generated_database_->Add(encoded_file_descriptor, size)); in InternalAddGeneratedFile()
1515 GOOGLE_CHECK(has_default_value()) << "No default value"; in DefaultValueAsString()
2678 GOOGLE_CHECK(fallback_database_ == NULL) in BuildFile()
2682 GOOGLE_CHECK(mutex_ == NULL); // Implied by the above GOOGLE_CHECK. in BuildFile()
2691 GOOGLE_CHECK(fallback_database_ == NULL) in BuildFileCollectingErrors()
2695 GOOGLE_CHECK(mutex_ == NULL); // Implied by the above GOOGLE_CHECK. in BuildFileCollectingErrors()
4671 GOOGLE_CHECK(builder_); in OptionInterpreter()
4691 GOOGLE_CHECK(uninterpreted_options_field != NULL) in InterpretOptions()
4699 GOOGLE_CHECK(original_uninterpreted_options_field != NULL) in InterpretOptions()
4729 GOOGLE_CHECK(options->ParseFromString(buf)) in InterpretOptions()
[all …]
Dmessage_lite.cc224 GOOGLE_CHECK(!coded_out.HadError()); in SerializeWithCachedSizesToArray()
Dmessage.cc107 GOOGLE_CHECK(IsInitialized()) in CheckInitialized()
Dextension_set_heavy.cc229 GOOGLE_CHECK(prototype != NULL); in AddMessage()
257 GOOGLE_CHECK(output->message_prototype != NULL) in Find()
Dwire_format_unittest.cc805 GOOGLE_CHECK(field != NULL); in MakeInvalidEmbeddedMessage()
826 GOOGLE_CHECK(field != NULL); in MakeInvalidGroup()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc114 GOOGLE_CHECK(file_proto_desc) in CollectExtensions()
123 GOOGLE_CHECK(dynamic_file_proto.get() != NULL); in CollectExtensions()
124 GOOGLE_CHECK(dynamic_file_proto->ParseFromString(file_data)); in CollectExtensions()
130 GOOGLE_CHECK(CollectExtensions(*dynamic_file_proto, extensions)) in CollectExtensions()
Djava_name_resolver.cc90 GOOGLE_CHECK(full_name.find('.') == string::npos); in ClassNameWithoutPackage()
/external/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc153 GOOGLE_CHECK(child_handle_ != NULL) << "Must call Start() first."; in Communicate()
298 GOOGLE_CHECK(pipe(stdin_pipe) != -1);
299 GOOGLE_CHECK(pipe(stdout_pipe) != -1);
Dparser.cc368 GOOGLE_CHECK(!location_->has_leading_comments()); in AttachComments()
369 GOOGLE_CHECK(!location_->has_trailing_comments()); in AttachComments()
1021 GOOGLE_CHECK(uninterpreted_option_field != NULL) in ParseOption()
Dcommand_line_interface.cc732 GOOGLE_CHECK(pool.BuildFile(file) != NULL); in Run()
1245 GOOGLE_CHECK(HasPrefixString(output_directive.name, "--") && in GenerateOutput()
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc73 GOOGLE_CHECK((self)->owner.get() == NULL); \
74 GOOGLE_CHECK((self)->message == NULL); \
75 GOOGLE_CHECK((self)->parent_field == NULL); \
76 GOOGLE_CHECK((self)->parent == NULL); \
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc277 GOOGLE_CHECK(output.get()); in Generate()
921 GOOGLE_CHECK(extension_field.is_extension()); in FixForeignFieldsInExtension()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc2284 GOOGLE_CHECK(UseUnknownFieldSet(descriptor_->file())); in GenerateSerializeWithCachedSizes()
2324 GOOGLE_CHECK(UseUnknownFieldSet(descriptor_->file())); in GenerateSerializeWithCachedSizesToArray()
2421 GOOGLE_CHECK(UseUnknownFieldSet(descriptor_->file())); in GenerateByteSize()

12