Lines Matching refs:growable
346 AuthorizationSet growable; in TEST() local
347 EXPECT_TRUE(growable.push_back(Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA))); in TEST()
348 EXPECT_EQ(1U, growable.size()); in TEST()
350 EXPECT_TRUE(growable.push_back(Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY))); in TEST()
351 EXPECT_EQ(2U, growable.size()); in TEST()
353 EXPECT_TRUE(growable.push_back(Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN))); in TEST()
354 EXPECT_EQ(3U, growable.size()); in TEST()
356 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_ID, "data", 4))); in TEST()
357 EXPECT_EQ(4U, growable.size()); in TEST()
359 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_DATA, "some more data", 14))); in TEST()
360 EXPECT_EQ(5U, growable.size()); in TEST()
362 size_t serialize_size = growable.SerializedSize(); in TEST()
365 growable.Serialize(serialized.get(), serialized.get() + serialize_size)); in TEST()
368 EXPECT_EQ(growable, deserialized); in TEST()
372 AuthorizationSet growable; in TEST() local
373 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
376 EXPECT_TRUE(growable.push_back(Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA))); in TEST()
377 EXPECT_EQ(1U, growable.size()); in TEST()
378 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
381 EXPECT_TRUE(growable.push_back(Authorization(TAG_RSA_PUBLIC_EXPONENT, 3))); in TEST()
382 EXPECT_EQ(2U, growable.size()); in TEST()
386 AuthorizationSet growable; in TEST() local
387 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
389 EXPECT_TRUE(growable.push_back(Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA))); in TEST()
390 EXPECT_EQ(1U, growable.size()); in TEST()
391 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
393 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_ID, "1234567890", 10))); in TEST()
394 EXPECT_EQ(2U, growable.size()); in TEST()
395 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
397 EXPECT_TRUE(growable.push_back(Authorization(TAG_APPLICATION_DATA, "1", 1))); in TEST()
398 EXPECT_EQ(3U, growable.size()); in TEST()
399 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
402 EXPECT_TRUE(growable.push_back(Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN))); in TEST()
403 EXPECT_EQ(4U, growable.size()); in TEST()
404 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()