Lines Matching refs:deserialized
167 AuthorizationSet deserialized(buf.get(), size); in TEST() local
169 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
170 EXPECT_EQ(set, deserialized); in TEST()
172 int pos = deserialized.find(TAG_APPLICATION_ID); in TEST()
174 EXPECT_EQ(KM_TAG_APPLICATION_ID, deserialized[pos].tag); in TEST()
175 EXPECT_EQ(6U, deserialized[pos].blob.data_length); in TEST()
176 EXPECT_EQ(0, memcmp(deserialized[pos].blob.data, "my_app", 6)); in TEST()
195 AuthorizationSet deserialized; in TEST() local
197 EXPECT_TRUE(deserialized.Deserialize(&p, p + size)); in TEST()
200 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
202 EXPECT_EQ(set.size(), deserialized.size()); in TEST()
204 EXPECT_EQ(set[i].tag, deserialized[i].tag); in TEST()
207 int pos = deserialized.find(TAG_APPLICATION_ID); in TEST()
209 EXPECT_EQ(KM_TAG_APPLICATION_ID, deserialized[pos].tag); in TEST()
210 EXPECT_EQ(6U, deserialized[pos].blob.data_length); in TEST()
211 EXPECT_EQ(0, memcmp(deserialized[pos].blob.data, "my_app", 6)); in TEST()
216 AuthorizationSet deserialized(buf, array_length(buf)); in TEST() local
217 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
220 EXPECT_FALSE(deserialized.Deserialize(&p, p + array_length(buf))); in TEST()
221 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
242 AuthorizationSet deserialized(buf.get(), size); in TEST() local
243 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
246 EXPECT_FALSE(deserialized.Deserialize(&p, p + size)); in TEST()
247 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
358 AuthorizationSet deserialized(serialized.get(), serialize_size); in TEST() local
359 EXPECT_EQ(growable, deserialized); in TEST()