Lines Matching refs:deserialized
174 AuthorizationSet deserialized(buf.get(), size); in TEST() local
176 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
177 EXPECT_EQ(set, deserialized); in TEST()
179 int pos = deserialized.find(TAG_APPLICATION_ID); in TEST()
181 EXPECT_EQ(KM_TAG_APPLICATION_ID, deserialized[pos].tag); in TEST()
182 EXPECT_EQ(6U, deserialized[pos].blob.data_length); in TEST()
183 EXPECT_EQ(0, memcmp(deserialized[pos].blob.data, "my_app", 6)); in TEST()
202 AuthorizationSet deserialized; in TEST() local
204 EXPECT_TRUE(deserialized.Deserialize(&p, p + size)); in TEST()
207 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
209 EXPECT_EQ(set.size(), deserialized.size()); in TEST()
211 EXPECT_EQ(set[i].tag, deserialized[i].tag); in TEST()
214 int pos = deserialized.find(TAG_APPLICATION_ID); in TEST()
216 EXPECT_EQ(KM_TAG_APPLICATION_ID, deserialized[pos].tag); in TEST()
217 EXPECT_EQ(6U, deserialized[pos].blob.data_length); in TEST()
218 EXPECT_EQ(0, memcmp(deserialized[pos].blob.data, "my_app", 6)); in TEST()
223 AuthorizationSet deserialized(buf, array_length(buf)); in TEST() local
224 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
227 EXPECT_FALSE(deserialized.Deserialize(&p, p + array_length(buf))); in TEST()
228 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
249 AuthorizationSet deserialized(buf.get(), size); in TEST() local
250 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
253 EXPECT_FALSE(deserialized.Deserialize(&p, p + size)); in TEST()
254 EXPECT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
259 AuthorizationSet deserialized(buf, array_length(buf)); in TEST() local
260 ASSERT_EQ(AuthorizationSet::MALFORMED_DATA, deserialized.is_valid()); in TEST()
262 deserialized.Clear(); in TEST()
263 ASSERT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
374 AuthorizationSet deserialized(serialized.get(), serialize_size); in TEST() local
375 EXPECT_EQ(growable, deserialized); in TEST()