Home
last modified time | relevance | path

Searched refs:deserialized (Results 1 – 25 of 103) sorted by relevance

12345

/external/libchrome/base/metrics/
Dhistogram_base_unittest.cc50 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/
DJavaParserJsonDeserializerTest.java56 …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/
DBuilderDeserializationTest2486.java109 … 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 …]
DBuilderWithTypeParametersTest.java95 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/
DProcessInstanceInfoTest.cpp127 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 …]
DArgsTest.cpp301 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()
DConstStringTest.cpp154 std::vector<ConstString> deserialized; in TEST() local
156 yin >> deserialized; in TEST()
158 EXPECT_EQ(strings, deserialized); in TEST()
DFileSpecTest.cpp433 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/
Drevived_types_test.py74 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/
DTestObjectId.java138 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()
DPolymorphicWithObjectId1551Test.java50 …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/
DLazyMessageLiteTest.java271 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/
Dbennofs.rs43 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/
DIgnoredFieldPresentInCreatorProperty2001Test.java24 Foo deserialized = newJsonMapper().readValue("{\"query\": \"bar\"}", Foo.class); in testIgnoredFieldPresentInPropertyCreator() local
25 assertEquals("bar", deserialized.query); in testIgnoredFieldPresentInPropertyCreator()
/external/protobuf/js/binary/
Dmessage_test.js56 var deserialized =
58 assertEquals(5, deserialized.getDeeplyNestedMessage().getCount());
/external/rust/crates/parking_lot/src/
Dremutex.rs144 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()
Dfair_mutex.rs273 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/
Dsimple_string_dictionary_unittest.cc272 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/
DMapSerializationTester.java39 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/
DMapSerializationTester.java39 Map<K, V> deserialized = SerializableTester.reserialize(getMap()); in testReserializeMap() local
40 new EqualsTester().addEqualityGroup(getMap(), deserialized).testEquals(); in testReserializeMap()
/external/libchrome/base/
Dunguessable_token_unittest.cc76 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/
DStatementEventTest.java100 Serializable deserialized) {
102 StatementEvent dserSt = (StatementEvent) deserialized;
/external/rust/crates/rand_xorshift/tests/
Dmod.rs83 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/
DPolymorphicList036Test.java104 StringyList<String> deserialized = MAPPER.readValue(serialized, type); in testPolymorphicWithOverride() local
107 assertNotNull(deserialized); in testPolymorphicWithOverride()
/external/rust/crates/serde_test/
DREADME.md69 let deserialized: Point = serde_json::from_str(&serialized).unwrap();
71 // Prints deserialized = Point { x: 1, y: 2 }
72 println!("deserialized = {:?}", deserialized);

12345