Lines Matching refs:deserializer
62 TestInstrumentationData(Deserializer &deserializer, Registry ®istry) in TestInstrumentationData() argument
63 : InstrumentationData(deserializer, registry) {} in TestInstrumentationData()
402 Deserializer deserializer(""); in TEST() local
403 EXPECT_FALSE(deserializer.HasData(1)); in TEST()
407 Deserializer deserializer("a"); in TEST() local
408 EXPECT_TRUE(deserializer.HasData(1)); in TEST()
409 EXPECT_FALSE(deserializer.HasData(2)); in TEST()
422 Deserializer deserializer(buffer); in TEST() local
424 EXPECT_EQ(p.a, deserializer.Deserialize<bool>()); in TEST()
425 EXPECT_EQ(p.b, deserializer.Deserialize<bool>()); in TEST()
426 EXPECT_EQ(p.c, deserializer.Deserialize<char>()); in TEST()
427 EXPECT_EQ(p.d, deserializer.Deserialize<float>()); in TEST()
428 EXPECT_EQ(p.e, deserializer.Deserialize<int>()); in TEST()
429 EXPECT_EQ(p.f, deserializer.Deserialize<long long>()); in TEST()
430 EXPECT_EQ(p.g, deserializer.Deserialize<long>()); in TEST()
431 EXPECT_EQ(p.h, deserializer.Deserialize<short>()); in TEST()
432 EXPECT_EQ(p.i, deserializer.Deserialize<unsigned char>()); in TEST()
433 EXPECT_EQ(p.j, deserializer.Deserialize<unsigned int>()); in TEST()
434 EXPECT_EQ(p.k, deserializer.Deserialize<unsigned long long>()); in TEST()
435 EXPECT_EQ(p.l, deserializer.Deserialize<unsigned long>()); in TEST()
436 EXPECT_EQ(p.m, deserializer.Deserialize<unsigned short>()); in TEST()
448 Deserializer deserializer(buffer); in TEST() local
450 EXPECT_EQ(p.a, *deserializer.Deserialize<bool *>()); in TEST()
451 EXPECT_EQ(p.b, *deserializer.Deserialize<bool *>()); in TEST()
452 EXPECT_EQ(p.c, *deserializer.Deserialize<char *>()); in TEST()
453 EXPECT_EQ(p.d, *deserializer.Deserialize<float *>()); in TEST()
454 EXPECT_EQ(p.e, *deserializer.Deserialize<int *>()); in TEST()
455 EXPECT_EQ(p.f, *deserializer.Deserialize<long long *>()); in TEST()
456 EXPECT_EQ(p.g, *deserializer.Deserialize<long *>()); in TEST()
457 EXPECT_EQ(p.h, *deserializer.Deserialize<short *>()); in TEST()
458 EXPECT_EQ(p.i, *deserializer.Deserialize<unsigned char *>()); in TEST()
459 EXPECT_EQ(p.j, *deserializer.Deserialize<unsigned int *>()); in TEST()
460 EXPECT_EQ(p.k, *deserializer.Deserialize<unsigned long long *>()); in TEST()
461 EXPECT_EQ(p.l, *deserializer.Deserialize<unsigned long *>()); in TEST()
462 EXPECT_EQ(p.m, *deserializer.Deserialize<unsigned short *>()); in TEST()
474 Deserializer deserializer(buffer); in TEST() local
476 EXPECT_EQ(p.a, deserializer.Deserialize<bool &>()); in TEST()
477 EXPECT_EQ(p.b, deserializer.Deserialize<bool &>()); in TEST()
478 EXPECT_EQ(p.c, deserializer.Deserialize<char &>()); in TEST()
479 EXPECT_EQ(p.d, deserializer.Deserialize<float &>()); in TEST()
480 EXPECT_EQ(p.e, deserializer.Deserialize<int &>()); in TEST()
481 EXPECT_EQ(p.f, deserializer.Deserialize<long long &>()); in TEST()
482 EXPECT_EQ(p.g, deserializer.Deserialize<long &>()); in TEST()
483 EXPECT_EQ(p.h, deserializer.Deserialize<short &>()); in TEST()
484 EXPECT_EQ(p.i, deserializer.Deserialize<unsigned char &>()); in TEST()
485 EXPECT_EQ(p.j, deserializer.Deserialize<unsigned int &>()); in TEST()
486 EXPECT_EQ(p.k, deserializer.Deserialize<unsigned long long &>()); in TEST()
487 EXPECT_EQ(p.l, deserializer.Deserialize<unsigned long &>()); in TEST()
488 EXPECT_EQ(p.m, deserializer.Deserialize<unsigned short &>()); in TEST()
501 Deserializer deserializer(buffer); in TEST() local
503 EXPECT_STREQ(cstr, deserializer.Deserialize<const char *>()); in TEST()
516 Deserializer deserializer(buffer); in TEST() local
518 EXPECT_EQ(nullptr, deserializer.Deserialize<const char *>()); in TEST()
534 Deserializer deserializer(buffer); in TEST() local
536 const char **deserialized = deserializer.Deserialize<const char **>(); in TEST()
552 Deserializer deserializer(buffer); in TEST() local
554 const char **deserialized = deserializer.Deserialize<const char **>(); in TEST()
566 Deserializer deserializer(buffer); in TEST() local
568 const char **deserialized = deserializer.Deserialize<const char **>(); in TEST()
584 Deserializer deserializer(buffer); in TEST() local
586 deserializer.HandleReplayResult(&foo); in TEST()
587 deserializer.HandleReplayResult(&bar); in TEST()
589 EXPECT_EQ(foo, *deserializer.Deserialize<Foo *>()); in TEST()
590 EXPECT_EQ(bar, *deserializer.Deserialize<Bar *>()); in TEST()
605 Deserializer deserializer(buffer); in TEST() local
607 deserializer.HandleReplayResult(&foo); in TEST()
608 deserializer.HandleReplayResult(&bar); in TEST()
610 EXPECT_EQ(foo, deserializer.Deserialize<Foo &>()); in TEST()
611 EXPECT_EQ(bar, deserializer.Deserialize<Bar &>()); in TEST()
636 Deserializer deserializer(os.str()); in TEST() local
637 registry.Replay(deserializer); in TEST()
639 ValidateObjects(deserializer.GetAllObjects(), in TEST()
676 Deserializer deserializer(os.str()); in TEST() local
677 registry.Replay(deserializer); in TEST()
679 ValidateObjects(deserializer.GetAllObjects(), in TEST()
711 Deserializer deserializer(os.str()); in TEST() local
712 registry.Replay(deserializer); in TEST()
715 deserializer.GetAllObjects(), in TEST()
751 Deserializer deserializer(os.str()); in TEST() local
752 registry.Replay(deserializer); in TEST()
755 deserializer.GetAllObjects(), in TEST()
787 Deserializer deserializer(os.str()); in TEST() local
788 registry.Replay(deserializer); in TEST()
791 deserializer.GetAllObjects(), in TEST()