• Home
  • Raw
  • Download

Lines Matching refs:ASSERT_EQ

79     ASSERT_EQ("abc", std::any_cast<std::string>(d));  in TEST()
84 ASSERT_EQ(10, std::any_cast<int32_t>(d)); in TEST()
107 ASSERT_EQ(0, value); // never invoked. in TEST()
117 ASSERT_EQ(1, value); // invoked once. in TEST()
132 ASSERT_EQ(1, value); // invoked once. in TEST()
133 ASSERT_EQ(2, std::any_cast<int32_t>(result)); // 2 returned in TEST()
145 ASSERT_EQ(0, std::any_cast<MoveCount>(&mc)->mCopyCount); // no copies in TEST()
146 ASSERT_EQ(1, std::any_cast<MoveCount>(mc).mCopyCount); // Note: any_cast on value copies. in TEST()
158 ASSERT_EQ(bs.size(), idx); // no data left over. in TEST()
163 ASSERT_EQ(0, std::any_cast<MoveCount>(&parceled)->mCopyCount); in TEST()
180 ASSERT_EQ(1, std::any_cast<int32_t>(d["int32"])); in TEST()
181 ASSERT_EQ(2, std::any_cast<int64_t>(d["int64"])); in TEST()
182 ASSERT_EQ(3.1f, std::any_cast<float>(d["float"])); in TEST()
183 ASSERT_EQ(4.11, std::any_cast<double>(d["double"])); in TEST()
184 ASSERT_EQ("hello", std::any_cast<std::string>(d["string"])); in TEST()
185 ASSERT_EQ("world", std::any_cast<std::string>(d["string2"])); in TEST()
188 ASSERT_EQ("neo", *d.get_ptr(MY_NAME_IS)); in TEST()
189 ASSERT_EQ("spot", *d.get_ptr(ITS_NAME_IS)); in TEST()
191 ASSERT_EQ("neo", d[MY_NAME_IS]); in TEST()
192 ASSERT_EQ("spot", d[ITS_NAME_IS]); in TEST()
196 ASSERT_EQ((size_t)8, data.size()); in TEST()
198 ASSERT_EQ(1, std::any_cast<int32_t>(data["int32"])); in TEST()
199 ASSERT_EQ(2, std::any_cast<int64_t>(data["int64"])); in TEST()
200 ASSERT_EQ(3.1f, std::any_cast<float>(data["float"])); in TEST()
201 ASSERT_EQ(4.11, std::any_cast<double>(data["double"])); in TEST()
202 ASSERT_EQ("hello", std::any_cast<std::string>(data["string"])); in TEST()
203 ASSERT_EQ("neo", *data.get_ptr(MY_NAME_IS)); in TEST()
204 ASSERT_EQ("spot", *data.get_ptr(ITS_NAME_IS)); in TEST()
207 ASSERT_EQ("one", data[MY_NAME_IS]); in TEST()
222 ASSERT_EQ(0, d2[MOVE_COUNT].mCopyCount); // no copies in TEST()
227 ASSERT_EQ(0, d3[MOVE_COUNT].mCopyCount); // no copies in TEST()
246 ASSERT_EQ(1, big[TABLE][MOVE_COUNT].mCopyCount); // one copy done for small. in TEST()
261 ASSERT_EQ((size_t)5, data.size()); in TEST()
263 ASSERT_EQ((size_t)1, data.size()); in TEST()
267 ASSERT_EQ("abc", data[TABLE][MY_NAME_IS]); in TEST()
271 ASSERT_EQ("abc", std::any_cast<Data>(data[VECTOR][1])[MY_NAME_IS]); in TEST()
272 ASSERT_EQ("abc", std::any_cast<Data>(data[PAIR].first)[MY_NAME_IS]); in TEST()
273 ASSERT_EQ(1, data[TABLE][MOVE_COUNT].mCopyCount); // no additional copies. in TEST()
276 ASSERT_EQ("a", funky[0][0].first); in TEST()
277 ASSERT_EQ(4, funky[1][1].second); in TEST()
280 ASSERT_EQ(0, arbitrary.i0); in TEST()
281 ASSERT_EQ(2, arbitrary.v1[1]); in TEST()
282 ASSERT_EQ(4, arbitrary.p2.first); in TEST()
322 ASSERT_EQ(reference, bs); in TEST()
329 ASSERT_EQ(1, std::any_cast<int32_t>(decoded["i32"])); in TEST()
330 ASSERT_EQ(2, std::any_cast<int64_t>(decoded["i64"])); in TEST()
331 ASSERT_EQ(3.1f, std::any_cast<float>(decoded["float"])); in TEST()
332 ASSERT_EQ(4.11, std::any_cast<double>(decoded["double"])); in TEST()
335 ASSERT_EQ("hello", std::any_cast<std::string>(s["string"])); in TEST()
341 ASSERT_EQ((size_t)0, decoded2.size()); in TEST()
345 ASSERT_EQ((size_t)4, decoded3.size()); in TEST()
346 ASSERT_EQ((size_t)1, unknowns.size()); in TEST()
347 ASSERT_EQ((unsigned)0xff, unknowns[0]); in TEST()
352 ASSERT_EQ(0x4, unknownDouble[0x3d]); in TEST()
355 ASSERT_EQ((size_t)0, decoded2.size()); in TEST()
359 ASSERT_EQ((size_t)4, decoded3.size()); in TEST()
360 ASSERT_EQ((size_t)1, unknowns.size()); in TEST()
361 ASSERT_EQ((unsigned)0xfe, unknowns[0]); in TEST()
371 ASSERT_EQ(ref1, bs); in TEST()
378 ASSERT_EQ(ref2, bs); in TEST()
394 ASSERT_EQ(ref3, bs); in TEST()
433 ASSERT_EQ(0, audio_metadata_get(metadata, "i32", &i32Val)); in TEST()
434 ASSERT_EQ(1, i32Val); in TEST()
435 ASSERT_EQ(0, audio_metadata_get(metadata, "i64", &i64Val)); in TEST()
436 ASSERT_EQ(2, i64Val); in TEST()
437 ASSERT_EQ(0, audio_metadata_get(metadata, "float", &floatVal)); in TEST()
438 ASSERT_EQ(3.1f, floatVal); in TEST()
439 ASSERT_EQ(0, audio_metadata_get(metadata, "double", &doubleVal)); in TEST()
440 ASSERT_EQ(4.11, doubleVal); in TEST()
441 ASSERT_EQ(0, audio_metadata_get(metadata, "data", &dataVal)); in TEST()
443 ASSERT_EQ(0, audio_metadata_get(dataVal, "string", &strVal)); in TEST()
444 ASSERT_EQ(0, strcmp("hello", strVal)); in TEST()
448 ASSERT_EQ(-ENOENT, audio_metadata_get(metadata, "non_exist_key", &i32Val)); in TEST()
450 ASSERT_EQ(-EINVAL, audio_metadata_get(nullMetadata, "i32", &i32Val)); in TEST()
452 ASSERT_EQ(-EINVAL, audio_metadata_get(metadata, nullKey, &i32Val)); in TEST()
454 ASSERT_EQ(-EINVAL, audio_metadata_get(metadata, "i32", nullI32Val)); in TEST()
459 ASSERT_EQ((size_t)length, audio_metadata_byte_string_len(bs)); in TEST()
460 ASSERT_EQ((size_t)length, dataByteStringLen(bs)); in TEST()
461 ASSERT_EQ(byteStringFromData(d).size(), ByteString(bs, length).size()); in TEST()
467 ASSERT_EQ(byteStringFromData(d), ByteString(bs, length)); in TEST()
468 ASSERT_EQ((size_t)length, audio_metadata_byte_string_len(bs)); in TEST()
469 ASSERT_EQ((size_t)length, dataByteStringLen(bs)); in TEST()
473 ASSERT_EQ(-EINVAL, byte_string_from_audio_metadata(nullMetadata, &bs)); in TEST()
475 ASSERT_EQ(-EINVAL, byte_string_from_audio_metadata(metadata, nullBs)); in TEST()
477 ASSERT_EQ(1, audio_metadata_erase(metadata, "data")); in TEST()
480 ASSERT_EQ(-ENOENT, audio_metadata_get(metadata, "data", &dataVal)); in TEST()
483 ASSERT_EQ(nullptr, dataVal); in TEST()
484 ASSERT_EQ(0, audio_metadata_erase(metadata, "data")); in TEST()
485 ASSERT_EQ(-EINVAL, audio_metadata_erase(nullMetadata, "key")); in TEST()
486 ASSERT_EQ(-EINVAL, audio_metadata_erase(metadata, nullKey)); in TEST()
498 ASSERT_EQ((size_t)length, audio_metadata_byte_string_len(bs)); in TEST()
499 ASSERT_EQ((size_t)length, dataByteStringLen(bs)); in TEST()
502 ASSERT_EQ(byteStringFromData(d).size(), ByteString(bs, length).size()); in TEST()
508 ASSERT_EQ(byteStringFromData(d), ByteString(bs, length)); in TEST()
509 ASSERT_EQ((size_t)length, audio_metadata_byte_string_len(bs)); in TEST()
510 ASSERT_EQ((size_t)length, dataByteStringLen(bs)); in TEST()