Lines Matching refs:growable
337 AuthorizationSet growable; in TEST() local
338 EXPECT_TRUE(growable.push_back(Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA))); in TEST()
339 EXPECT_EQ(1U, growable.size()); in TEST()
341 EXPECT_TRUE(growable.push_back(Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY))); in TEST()
342 EXPECT_EQ(2U, growable.size()); in TEST()
344 EXPECT_TRUE(growable.push_back(Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN))); in TEST()
345 EXPECT_EQ(3U, growable.size()); in TEST()
347 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_ID, "data", 4))); in TEST()
348 EXPECT_EQ(4U, growable.size()); in TEST()
350 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_DATA, "some more data", 14))); in TEST()
351 EXPECT_EQ(5U, growable.size()); in TEST()
353 size_t serialize_size = growable.SerializedSize(); in TEST()
356 growable.Serialize(serialized.get(), serialized.get() + serialize_size)); in TEST()
359 EXPECT_EQ(growable, deserialized); in TEST()
363 AuthorizationSet growable; in TEST() local
364 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
367 EXPECT_TRUE(growable.push_back(Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA))); in TEST()
368 EXPECT_EQ(1U, growable.size()); in TEST()
369 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
372 EXPECT_TRUE(growable.push_back(Authorization(TAG_RSA_PUBLIC_EXPONENT, 3))); in TEST()
373 EXPECT_EQ(2U, growable.size()); in TEST()
377 AuthorizationSet growable; in TEST() local
378 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
380 EXPECT_TRUE(growable.push_back(Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA))); in TEST()
381 EXPECT_EQ(1U, growable.size()); in TEST()
382 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
384 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_ID, "1234567890", 10))); in TEST()
385 EXPECT_EQ(2U, growable.size()); in TEST()
386 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
388 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_DATA, "1", 1))); in TEST()
389 EXPECT_EQ(3U, growable.size()); in TEST()
390 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
393 EXPECT_TRUE(growable.push_back(Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN))); in TEST()
394 EXPECT_EQ(4U, growable.size()); in TEST()
395 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()