Home
last modified time | relevance | path

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

123

/external/protobuf/src/google/protobuf/stubs/
Dlogging.h124 #undef GOOGLE_CHECK
151 #define GOOGLE_CHECK(EXPRESSION) \ macro
153 #define GOOGLE_CHECK_OK(A) GOOGLE_CHECK(::google::protobuf::internal::IsOk(A))
154 #define GOOGLE_CHECK_EQ(A, B) GOOGLE_CHECK((A) == (B))
155 #define GOOGLE_CHECK_NE(A, B) GOOGLE_CHECK((A) != (B))
156 #define GOOGLE_CHECK_LT(A, B) GOOGLE_CHECK((A) < (B))
157 #define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
158 #define GOOGLE_CHECK_GT(A, B) GOOGLE_CHECK((A) > (B))
159 #define GOOGLE_CHECK_GE(A, B) GOOGLE_CHECK((A) >= (B))
179 #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)) << "duplicate value: " << value;
347 GOOGLE_CHECK(InsertIfNotPresent(collection, value)) << "duplicate value.";
356 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data))
366 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data)) << "duplicate key.";
382 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()
Dshared_ptr.h431 GOOGLE_CHECK(!weak_this_.expired()) << "No shared_ptr owns this object";
435 GOOGLE_CHECK(!weak_this_.expired()) << "No shared_ptr owns this object";
459 GOOGLE_CHECK(ptr->weak_this_.expired()) << "Object already owned by a shared_ptr";
/external/protobuf/src/google/protobuf/testing/
Dgoogletest.cc137 GOOGLE_CHECK(mkdir(name_.c_str(), 0777) == 0) << strerror(errno); in GetTempDir()
172 GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); in CaptureTestStdout()
187 GOOGLE_CHECK(fd >= 0) << "open: " << strerror(errno); in CaptureTestStderr()
228 GOOGLE_CHECK(active_log_ == NULL); in ScopedMemoryLog()
239 GOOGLE_CHECK(level == ERROR || in GetMessages()
246 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/io/
Dzero_copy_stream_impl.cc124 GOOGLE_CHECK(!is_closed_); in Close()
139 GOOGLE_CHECK(!is_closed_); in Read()
155 GOOGLE_CHECK(!is_closed_); in Skip()
222 GOOGLE_CHECK(!is_closed_); in Close()
238 GOOGLE_CHECK(!is_closed_); in Write()
Dzero_copy_stream_impl_lite.cc160 GOOGLE_CHECK(target_ != NULL); in Next()
192 GOOGLE_CHECK(target_ != NULL); in BackUp()
198 GOOGLE_CHECK(target_ != NULL); in ByteCount()
301 GOOGLE_CHECK(backup_bytes_ == 0 && buffer_.get() != NULL) in BackUp()
Dgzip_stream.cc67 GOOGLE_CHECK(output_buffer_ != NULL); in GzipInputStream()
216 GOOGLE_CHECK(input_buffer_ != NULL); in Init()
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc79 GOOGLE_CHECK(!key_field_paths_.empty()); in MultipleFieldsMapKeyComparator()
81 GOOGLE_CHECK(!key_field_paths_[i].empty()); in MultipleFieldsMapKeyComparator()
207 GOOGLE_CHECK(comparator) << "Field comparator can't be NULL."; in set_field_comparator()
236 GOOGLE_CHECK(field->is_repeated()) << "Field must be repeated: " in TreatAsSet()
239 GOOGLE_CHECK(key_comparator == NULL) in TreatAsSet()
242 GOOGLE_CHECK(list_fields_.find(field) == list_fields_.end()) in TreatAsSet()
249 GOOGLE_CHECK(field->is_repeated()) << "Field must be repeated: " in TreatAsList()
252 GOOGLE_CHECK(key_comparator == NULL) in TreatAsList()
255 GOOGLE_CHECK(set_fields_.find(field) == set_fields_.end()) in TreatAsList()
263 GOOGLE_CHECK(field->is_repeated()) << "Field must be repeated: " in TreatAsMap()
[all …]
/external/protobuf/src/google/protobuf/
Dlite_unittest.cc54 GOOGLE_CHECK(message.optional_int32() == 3); in ExpectMessageMerged()
55 GOOGLE_CHECK(message.optional_int64() == 2); in ExpectMessageMerged()
56 GOOGLE_CHECK(message.optional_string() == "hello"); in ExpectMessageMerged()
92 #define EXPECT_TRUE GOOGLE_CHECK
93 #define ASSERT_TRUE GOOGLE_CHECK
94 #define EXPECT_FALSE(COND) GOOGLE_CHECK(!(COND))
155 GOOGLE_CHECK(packed_extensions_data == packed_data); in main()
212 GOOGLE_CHECK(parsing_merge.repeated_all_types_size() == 3); in main()
213 GOOGLE_CHECK(parsing_merge.repeatedgroup_size() == 3); in main()
214 GOOGLE_CHECK(parsing_merge.ExtensionSize( in main()
Dextension_set.cc169 GOOGLE_CHECK(type == WireFormatLite::TYPE_MESSAGE || in RegisterMessageExtension()
294 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; \
302 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; \
412 GOOGLE_CHECK(iter == extensions_.end()) << "Extension not found."; in MutableRawRepeatedField()
449 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedEnum()
456 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in SetRepeatedEnum()
511 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedString()
518 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in MutableRepeatedString()
724 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in GetRepeatedMessage()
731 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty)."; in MutableRepeatedMessage()
[all …]
Dreflection_internal.h240 GOOGLE_CHECK(this == other_mutator); in Swap()
287 GOOGLE_CHECK(this == other_mutator); in Swap()
358 GOOGLE_CHECK(this == other_mutator); in Swap()
Dmap_field_inl.h140 GOOGLE_CHECK(map_iter->iter_ != NULL); in InitializeIterator()
414 GOOGLE_CHECK(default_entry_ != NULL); in SyncRepeatedFieldWithMapNoLock()
434 GOOGLE_CHECK(MapFieldBase::repeated_field_ != NULL); in SyncMapWithRepeatedFieldNoLock()
478 GOOGLE_CHECK(*MapFieldBase::entry_descriptor_ != NULL); in InitDefaultEntryOnce()
Dempty.pb.cc37 GOOGLE_CHECK(file != NULL); in protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto()
105 GOOGLE_CHECK(false) << __FILE__ << ":" << line; in MergeFromFail()
Dfield_mask.pb.cc37 GOOGLE_CHECK(file != NULL); in protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto()
106 GOOGLE_CHECK(false) << __FILE__ << ":" << line; in MergeFromFail()
Dsource_context.pb.cc37 GOOGLE_CHECK(file != NULL); in protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto()
106 GOOGLE_CHECK(false) << __FILE__ << ":" << line; in MergeFromFail()
Dduration.pb.cc37 GOOGLE_CHECK(file != NULL); in protobuf_AssignDesc_google_2fprotobuf_2fduration_2eproto()
108 GOOGLE_CHECK(false) << __FILE__ << ":" << line; in MergeFromFail()
/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/conformance/
Dconformance_cpp.cc130 GOOGLE_CHECK( in DoTest()
136 GOOGLE_CHECK(test_message.SerializeToString(&proto_binary)); in DoTest()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc132 GOOGLE_CHECK(file_proto_desc) in CollectExtensions()
141 GOOGLE_CHECK(dynamic_file_proto.get() != NULL); in CollectExtensions()
142 GOOGLE_CHECK(dynamic_file_proto->ParseFromString(file_data)); in CollectExtensions()
148 GOOGLE_CHECK(CollectExtensions(*dynamic_file_proto, extensions)) in CollectExtensions()
Djava_map_field.cc49 GOOGLE_CHECK(message->options().map_entry()); in KeyField()
56 GOOGLE_CHECK(message->options().map_entry()); in ValueField()
Djava_map_field_lite.cc49 GOOGLE_CHECK(message->options().map_entry()); in KeyField()
56 GOOGLE_CHECK(message->options().map_entry()); in ValueField()
/external/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc155 GOOGLE_CHECK(child_handle_ != NULL) << "Must call Start() first."; in Communicate()
300 GOOGLE_CHECK(pipe(stdin_pipe) != -1);
301 GOOGLE_CHECK(pipe(stdout_pipe) != -1);
/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_descriptor == NULL); \
76 GOOGLE_CHECK((self)->parent == NULL); \

123