/external/libchrome/base/metrics/ |
D | histogram_base_unittest.cc | 50 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F() local 51 EXPECT_EQ(histogram, deserialized); in TEST_F() 56 deserialized = DeserializeHistogramInfo(&iter2); in TEST_F() 57 EXPECT_TRUE(deserialized); in TEST_F() 58 EXPECT_NE(histogram, deserialized); in TEST_F() 59 EXPECT_EQ("TestHistogram", StringPiece(deserialized->histogram_name())); in TEST_F() 60 EXPECT_TRUE(deserialized->HasConstructionArguments(1, 1000, 10)); in TEST_F() 63 EXPECT_EQ(HistogramBase::kUmaTargetedHistogramFlag, deserialized->flags()); in TEST_F() 75 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F() local 76 EXPECT_EQ(histogram, deserialized); in TEST_F() [all …]
|
/external/javaparser/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/ |
D | JavaParserJsonDeserializerTest.java | 56 …Node deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))… in simpleTest() local 58 assertEqualsNoEol("public class X {\n}\n\nclass Z {\n}\n", deserialized.toString()); in simpleTest() 59 assertEquals(cu.hashCode(), deserialized.hashCode()); in simpleTest() 67 …Node deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))… in testRawType() local 69 assertEqualsNoEol("Blub", deserialized.toString()); in testRawType() 70 assertEquals(type.hashCode(), deserialized.hashCode()); in testRawType() 78 …Node deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))… in testDiamondType() local 80 assertEqualsNoEol("Blub<>", deserialized.toString()); in testDiamondType() 81 assertEquals(type.hashCode(), deserialized.hashCode()); in testDiamondType() 89 …Node deserialized = deserializer.deserializeObject(Json.createReader(new StringReader(serialized))… in testGenerics() local [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/ |
D | BuilderDeserializationTest2486.java | 109 … final MyPOJOWithArrayCreator deserialized = MAPPER.readValue(json, MyPOJOWithArrayCreator.class); in testPOJOWithArrayCreatorFromObjectRepresentation() local 110 assertEquals(123, deserialized.getIndex()); in testPOJOWithArrayCreatorFromObjectRepresentation() 115 … final MyPOJOWithArrayCreator deserialized = MAPPER.readValue(json, MyPOJOWithArrayCreator.class); in testPOJOWithArrayCreatorFromArrayRepresentation() local 116 assertEquals(123, deserialized.getIndex()); in testPOJOWithArrayCreatorFromArrayRepresentation() 121 …final MyPOJOWithPrimitiveCreator deserialized = MAPPER.readValue(json, MyPOJOWithPrimitiveCreator.… in testPOJOWithPrimitiveCreatorFromObjectRepresentation() local 122 assertEquals(123, deserialized.getIndex()); in testPOJOWithPrimitiveCreatorFromObjectRepresentation() 127 …final MyPOJOWithPrimitiveCreator deserialized = MAPPER.readValue(json, MyPOJOWithPrimitiveCreator.… in testPOJOWithPrimitiveCreatorFromPrimitiveRepresentation() local 128 assertEquals(123, deserialized.getIndex()); in testPOJOWithPrimitiveCreatorFromPrimitiveRepresentation() 139 …final MyPOJOWithArrayCreator.Builder deserialized = MAPPER.readValue(json, MyPOJOWithArrayCreator.… in testPOJOBuilderWithArrayCreatorFromObjectRepresentation() local 140 assertEquals(123, deserialized.index); in testPOJOBuilderWithArrayCreatorFromObjectRepresentation() [all …]
|
D | BuilderWithTypeParametersTest.java | 95 final MyGenericPOJO<MyPOJO> deserialized = in testWithBuilderInferringBindings() local 97 assertEquals(1, deserialized.data.size()); in testWithBuilderInferringBindings() 98 Object ob = deserialized.data.get(0); in testWithBuilderInferringBindings() 108 final MyGenericPOJO<MyPOJO> deserialized = in testWithBuilderWithoutInferringBindings() local 110 assertEquals(1, deserialized.data.size()); in testWithBuilderWithoutInferringBindings() 111 Object ob = deserialized.data.get(0); in testWithBuilderWithoutInferringBindings() 119 final MyGenericPOJOWithCreator<MyPOJO> deserialized = in testWithCreator() local 122 assertEquals(1, deserialized.data.size()); in testWithCreator() 123 Object ob = deserialized.data.get(0); in testWithCreator()
|
/external/llvm-project/lldb/unittests/Utility/ |
D | ProcessInstanceInfoTest.cpp | 127 ProcessInstanceInfo deserialized; in TEST() local 129 yin >> deserialized; in TEST() 131 EXPECT_EQ(deserialized.GetNameAsStringRef(), info.GetNameAsStringRef()); in TEST() 132 EXPECT_EQ(deserialized.GetArchitecture(), info.GetArchitecture()); in TEST() 133 EXPECT_EQ(deserialized.GetUserID(), info.GetUserID()); in TEST() 134 EXPECT_EQ(deserialized.GetGroupID(), info.GetGroupID()); in TEST() 135 EXPECT_EQ(deserialized.GetEffectiveUserID(), info.GetEffectiveUserID()); in TEST() 136 EXPECT_EQ(deserialized.GetEffectiveGroupID(), info.GetEffectiveGroupID()); in TEST() 156 ProcessInstanceInfoList deserialized; in TEST() local 158 yin >> deserialized; in TEST() [all …]
|
D | ArgsTest.cpp | 301 Args deserialized; in TEST() local 303 yin >> deserialized; in TEST() 305 EXPECT_EQ(4u, deserialized.GetArgumentCount()); in TEST() 306 EXPECT_STREQ(deserialized.GetArgumentAtIndex(0), "this"); in TEST() 307 EXPECT_STREQ(deserialized.GetArgumentAtIndex(1), "has"); in TEST() 308 EXPECT_STREQ(deserialized.GetArgumentAtIndex(2), "multiple"); in TEST() 309 EXPECT_STREQ(deserialized.GetArgumentAtIndex(3), "args"); in TEST() 311 llvm::ArrayRef<Args::ArgEntry> entries = deserialized.entries(); in TEST()
|
D | ConstStringTest.cpp | 154 std::vector<ConstString> deserialized; in TEST() local 156 yin >> deserialized; in TEST() 158 EXPECT_EQ(strings, deserialized); in TEST()
|
D | FileSpecTest.cpp | 433 FileSpec deserialized; in TEST() local 435 yin >> deserialized; in TEST() 437 EXPECT_EQ(deserialized.GetPathStyle(), fs_windows.GetPathStyle()); in TEST() 438 EXPECT_EQ(deserialized.GetFilename(), fs_windows.GetFilename()); in TEST() 439 EXPECT_EQ(deserialized.GetDirectory(), fs_windows.GetDirectory()); in TEST() 440 EXPECT_EQ(deserialized, fs_windows); in TEST()
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | revived_types_test.py | 74 deserialized, _ = revived_types.deserialize(serialized) 75 self.assertIsInstance(deserialized, CustomTestClass) 76 self.assertEqual(4, deserialized.version) 89 deserialized, _ = revived_types.deserialize( 96 self.assertEqual(2, deserialized.version) 99 deserialized, _ = revived_types.deserialize( 106 self.assertEqual(3, deserialized.version)
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/ |
D | TestObjectId.java | 138 Wrapper deserialized = MAPPER.readValue(json, Wrapper.class); in testColumnMetadata() local 139 assertNotNull(deserialized); in testColumnMetadata() 140 assertNotNull(deserialized.a); in testColumnMetadata() 141 assertNotNull(deserialized.b); in testColumnMetadata() 143 assertEquals("Billy", deserialized.a.getName()); in testColumnMetadata() 144 assertEquals("employee", deserialized.a.getType()); in testColumnMetadata() 145 assertEquals("comment", deserialized.a.getComment()); in testColumnMetadata() 147 assertSame(deserialized.a, deserialized.b); in testColumnMetadata()
|
D | PolymorphicWithObjectId1551Test.java | 50 …VehicleOwnerViaProp[] deserialized = objectMapper.readValue(serialized, VehicleOwnerViaProp[].clas… in testWithAbstractUsingProp() local 51 assertEquals(2, deserialized.length); in testWithAbstractUsingProp() 52 assertSame(deserialized[0].ownedVehicle, deserialized[1].ownedVehicle); in testWithAbstractUsingProp()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | LazyMessageLiteTest.java | 271 LazyMessageLite deserialized = LazyMessageLite.parseFrom(bytes); in testSerialize() local 273 assertEquals(1, deserialized.getNum()); in testSerialize() 274 assertEquals(421, deserialized.getNumWithDefault()); in testSerialize() 276 assertEquals(2, deserialized.getInner().getNum()); in testSerialize() 277 assertEquals(42, deserialized.getInner().getNumWithDefault()); in testSerialize() 279 assertEquals(3, deserialized.getInner().getNested().getNum()); in testSerialize() 280 assertEquals(4, deserialized.getInner().getNested().getNumWithDefault()); in testSerialize() 282 assertEquals(2, deserialized.getOneofInner().getNum()); in testSerialize() 283 assertEquals(42, deserialized.getOneofInner().getNumWithDefault()); in testSerialize() 284 assertEquals(3, deserialized.getOneofInner().getNested().getNum()); in testSerialize() [all …]
|
/external/rust/crates/serde_cbor/tests/ |
D | bennofs.rs | 43 let deserialized: Example = serde_cbor::from_slice(&serialized).expect("bennofs 2"); in test() localVariable 44 assert_eq!(EXAMPLE, deserialized); in test() 57 let deserialized: Example = in test() localVariable 59 assert_eq!(EXAMPLE, deserialized); in test()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/ |
D | IgnoredFieldPresentInCreatorProperty2001Test.java | 24 Foo deserialized = newJsonMapper().readValue("{\"query\": \"bar\"}", Foo.class); in testIgnoredFieldPresentInPropertyCreator() local 25 assertEquals("bar", deserialized.query); in testIgnoredFieldPresentInPropertyCreator()
|
/external/protobuf/js/binary/ |
D | message_test.js | 56 var deserialized = 58 assertEquals(5, deserialized.getDeeplyNestedMessage().getCount());
|
/external/rust/crates/parking_lot/src/ |
D | remutex.rs | 144 let deserialized: ReentrantMutex<Vec<u8>> = deserialize(&serialized).unwrap(); in test_serde() localVariable 146 assert_eq!(*(mutex.lock()), *(deserialized.lock())); in test_serde() 147 assert_eq!(contents, *(deserialized.lock())); in test_serde()
|
D | fair_mutex.rs | 273 let deserialized: FairMutex<Vec<u8>> = deserialize(&serialized).unwrap(); in test_serde() localVariable 275 assert_eq!(*(mutex.lock()), *(deserialized.lock())); in test_serde() 276 assert_eq!(contents, *(deserialized.lock())); in test_serde()
|
/external/google-breakpad/src/common/ |
D | simple_string_dictionary_unittest.cc | 272 TestMap deserialized(serialized_copy, size); in TEST() local 275 EXPECT_EQ(3u, deserialized.GetCount()); in TEST() 276 EXPECT_STREQ("abc", deserialized.GetValueForKey("one")); in TEST() 277 EXPECT_STREQ("def", deserialized.GetValueForKey("two")); in TEST() 278 EXPECT_STREQ("hig", deserialized.GetValueForKey("tre")); in TEST()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | MapSerializationTester.java | 39 Map<K, V> deserialized = SerializableTester.reserialize(getMap()); in testReserializeMap() local 40 new EqualsTester().addEqualityGroup(getMap(), deserialized).testEquals(); in testReserializeMap()
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | MapSerializationTester.java | 39 Map<K, V> deserialized = SerializableTester.reserialize(getMap()); in testReserializeMap() local 40 new EqualsTester().addEqualityGroup(getMap(), deserialized).testEquals(); in testReserializeMap()
|
/external/libchrome/base/ |
D | unguessable_token_unittest.cc | 76 UnguessableToken deserialized; in TEST() local 77 EXPECT_TRUE(GetValueAsUnguessableToken(*value, &deserialized)); in TEST() 78 EXPECT_EQ(token, deserialized); in TEST()
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/ |
D | StatementEventTest.java | 100 Serializable deserialized) { 102 StatementEvent dserSt = (StatementEvent) deserialized;
|
/external/rust/crates/rand_xorshift/tests/ |
D | mod.rs | 83 let mut deserialized: XorShiftRng = bincode::deserialize_from(&mut read) in test_xorshift_serde() localVariable 87 assert_eq!(rng.next_u64(), deserialized.next_u64()); in test_xorshift_serde()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/ |
D | PolymorphicList036Test.java | 104 StringyList<String> deserialized = MAPPER.readValue(serialized, type); in testPolymorphicWithOverride() local 107 assertNotNull(deserialized); in testPolymorphicWithOverride()
|
/external/rust/crates/serde_test/ |
D | README.md | 69 let deserialized: Point = serde_json::from_str(&serialized).unwrap(); 71 // Prints deserialized = Point { x: 1, y: 2 } 72 println!("deserialized = {:?}", deserialized);
|