Home
last modified time | relevance | path

Searched refs:GOOGLE_CHECK (Results 1 – 25 of 28) 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()
233 GOOGLE_CHECK(active_log_ != NULL); in HandleLog()
Dfile.cc82 GOOGLE_CHECK(ReadFileToString(name, output)) << "Could not read: " << name; in ReadFileToStringOrDie()
87 GOOGLE_CHECK(file != NULL) in WriteStringToFileOrDie()
92 GOOGLE_CHECK(fclose(file) == 0) in WriteStringToFileOrDie()
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc122 GOOGLE_CHECK(!is_closed_); in Close()
137 GOOGLE_CHECK(!is_closed_); in Read()
153 GOOGLE_CHECK(!is_closed_); in Skip()
220 GOOGLE_CHECK(!is_closed_); in Close()
236 GOOGLE_CHECK(!is_closed_); in Write()
Dgzip_stream.cc66 GOOGLE_CHECK(output_buffer_ != NULL); in GzipInputStream()
204 GOOGLE_CHECK(input_buffer_ != NULL); in Init()
Dzero_copy_stream_impl_lite.cc256 GOOGLE_CHECK(backup_bytes_ == 0 && buffer_.get() != NULL) in BackUp()
/external/protobuf/src/google/protobuf/stubs/
Dcommon.h656 #undef GOOGLE_CHECK
680 #define GOOGLE_CHECK(EXPRESSION) \ macro
682 #define GOOGLE_CHECK_EQ(A, B) GOOGLE_CHECK((A) == (B))
683 #define GOOGLE_CHECK_NE(A, B) GOOGLE_CHECK((A) != (B))
684 #define GOOGLE_CHECK_LT(A, B) GOOGLE_CHECK((A) < (B))
685 #define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
686 #define GOOGLE_CHECK_GT(A, B) GOOGLE_CHECK((A) > (B))
687 #define GOOGLE_CHECK_GE(A, B) GOOGLE_CHECK((A) >= (B))
693 #define GOOGLE_DCHECK(EXPRESSION) while(false) GOOGLE_CHECK(EXPRESSION)
705 #define GOOGLE_DCHECK GOOGLE_CHECK
Dstrutil.cc203 GOOGLE_CHECK(result != NULL); in JoinStringsIterator()
405 GOOGLE_CHECK(dest); in UnescapeCEscapeString()
657 GOOGLE_CHECK(i >= 0) << "FastHexToBuffer() wants non-negative integers, not " << i; in FastHexToBuffer()
/external/protobuf/src/google/protobuf/
Dlite_unittest.cc66 GOOGLE_CHECK(extensions_data == data); in main()
99 GOOGLE_CHECK(packed_extensions_data == packed_data); in main()
Dextension_set.cc151 GOOGLE_CHECK(type == WireFormatLite::TYPE_MESSAGE || in RegisterMessageExtension()
244 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; \
252 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; \
314 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedEnum()
321 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in SetRepeatedEnum()
375 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedString()
382 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in MutableRepeatedString()
446 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedMessage()
453 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in MutableRepeatedMessage()
492 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in RemoveLast()
[all …]
Dextension_set_heavy.cc135 GOOGLE_CHECK(prototype != NULL); in MutableMessage()
165 GOOGLE_CHECK(prototype != NULL); in AddMessage()
193 GOOGLE_CHECK(output->message_prototype != NULL) in Find()
Ddescriptor.cc860 GOOGLE_CHECK(generated_database_->Add(encoded_file_descriptor, size)); in InternalAddGeneratedFile()
1291 GOOGLE_CHECK(has_default_value()) << "No default value"; in DefaultValueAsString()
2176 GOOGLE_CHECK(fallback_database_ == NULL) in BuildFile()
2180 GOOGLE_CHECK(mutex_ == NULL); // Implied by the above GOOGLE_CHECK. in BuildFile()
2187 GOOGLE_CHECK(fallback_database_ == NULL) in BuildFileCollectingErrors()
2191 GOOGLE_CHECK(mutex_ == NULL); // Implied by the above GOOGLE_CHECK. in BuildFileCollectingErrors()
3796 GOOGLE_CHECK(builder_); in OptionInterpreter()
3816 GOOGLE_CHECK(uninterpreted_options_field != NULL) in InterpretOptions()
3824 GOOGLE_CHECK(original_uninterpreted_options_field != NULL) in InterpretOptions()
3854 GOOGLE_CHECK(options->ParseFromString(buf)) in InterpretOptions()
[all …]
Dmessage.cc105 GOOGLE_CHECK(IsInitialized()) in CheckInitialized()
Dmessage_lite.cc224 GOOGLE_CHECK(!coded_out.HadError()); in SerializeWithCachedSizesToArray()
Dgenerated_message_reflection_unittest.cc63 GOOGLE_CHECK(result != NULL); in F()
Ddynamic_message.cc383 GOOGLE_CHECK(is_prototype()); in CrossLinkPrototypes()
Dwire_format_unittest.cc650 GOOGLE_CHECK(field != NULL); in MakeInvalidEmbeddedMessage()
671 GOOGLE_CHECK(field != NULL); in MakeInvalidGroup()
Dgenerated_message_reflection.cc895 GOOGLE_CHECK(result != NULL); in GetEnum()
925 GOOGLE_CHECK(result != NULL); in GetRepeatedEnum()
Dtest_util_lite.cc39 #define EXPECT_TRUE GOOGLE_CHECK
40 #define ASSERT_TRUE GOOGLE_CHECK
41 #define EXPECT_FALSE(COND) GOOGLE_CHECK(!(COND))
Drepeated_field_unittest.cc799 GOOGLE_CHECK(*it != NULL); in TEST_F()
/external/protobuf/src/google/protobuf/compiler/
Dimporter_unittest.cc339 GOOGLE_CHECK(File::CreateDir(dirnames_[i].c_str(), DEFAULT_FILE_MODE)); in SetUp()
354 GOOGLE_CHECK(File::CreateDir(dirname.c_str(), DEFAULT_FILE_MODE)); in AddSubdir()
Dcommand_line_interface_unittest.cc218 GOOGLE_CHECK(File::CreateDir(temp_directory_.c_str(), DEFAULT_FILE_MODE)); in SetUp()
1257 GOOGLE_CHECK(RedirectStdinFromFile(filename)); in RedirectStdinFromText()
Dsubprocess.cc150 GOOGLE_CHECK(child_handle_ != NULL) << "Must call Start() first."; in Communicate()
Dcommand_line_interface.cc671 GOOGLE_CHECK(pool.BuildFile(file) != NULL); in Run()
1105 GOOGLE_CHECK(HasPrefixString(output_directive.name, "--") && in GenerateOutput()
Dparser.cc670 GOOGLE_CHECK(uninterpreted_option_field != NULL) in ParseOptionAssignment()
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc256 GOOGLE_CHECK(output.get()); in Generate()
774 GOOGLE_CHECK(extension_field.is_extension()); in FixForeignFieldsInExtension()

12