Lines Matching refs:rtc

18 using rtc::SSLIdentity;
73 identity_rsa1_.reset(SSLIdentity::Generate("test1", rtc::KT_RSA)); in SetUp()
74 identity_rsa2_.reset(SSLIdentity::Generate("test2", rtc::KT_RSA)); in SetUp()
75 identity_ecdsa1_.reset(SSLIdentity::Generate("test3", rtc::KT_ECDSA)); in SetUp()
76 identity_ecdsa2_.reset(SSLIdentity::Generate("test4", rtc::KT_ECDSA)); in SetUp()
83 test_cert_.reset(rtc::SSLCertificate::FromPEMString(kTestCertificate)); in SetUp()
92 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm()
96 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm()
100 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm()
104 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm()
108 ASSERT_EQ(rtc::DIGEST_MD5, digest_algorithm); in TestGetSignatureDigestAlgorithm()
111 typedef unsigned char DigestType[rtc::MessageDigest::kMaxSize];
177 rtc::scoped_ptr<SSLIdentity> identity_rsa1_;
178 rtc::scoped_ptr<SSLIdentity> identity_rsa2_;
179 rtc::scoped_ptr<SSLIdentity> identity_ecdsa1_;
180 rtc::scoped_ptr<SSLIdentity> identity_ecdsa2_;
181 rtc::scoped_ptr<rtc::SSLCertificate> test_cert_;
185 TestDigestForFixedCert(rtc::DIGEST_SHA_1, 20, kTestCertSha1); in TEST_F()
190 TestDigestForFixedCert(rtc::DIGEST_SHA_224, 28, kTestCertSha224); in TEST_F()
194 TestDigestForFixedCert(rtc::DIGEST_SHA_256, 32, kTestCertSha256); in TEST_F()
198 TestDigestForFixedCert(rtc::DIGEST_SHA_384, 48, kTestCertSha384); in TEST_F()
202 TestDigestForFixedCert(rtc::DIGEST_SHA_512, 64, kTestCertSha512); in TEST_F()
207 TestDigestForGeneratedCert(rtc::DIGEST_SHA_224, 28); in TEST_F()
211 TestDigestForGeneratedCert(rtc::DIGEST_SHA_256, 32); in TEST_F()
215 TestDigestForGeneratedCert(rtc::DIGEST_SHA_384, 48); in TEST_F()
219 TestDigestForGeneratedCert(rtc::DIGEST_SHA_512, 64); in TEST_F()
254 rtc::scoped_ptr<SSLIdentity> identity( in TEST_F()
281 rtc::scoped_ptr<SSLIdentity> identity( in TEST_F()
304 rtc::SetRandomTestMode(true); in SSLIdentityExpirationTest()
308 rtc::SetRandomTestMode(false); in ~SSLIdentityExpirationTest()
373 buf[length] = rtc::CreateRandomId(); // ...and terminate it with junk. in TestASN1TimeToSec()
374 int64_t res = rtc::ASN1TimeToSec(buf, length, entry.long_format); in TestASN1TimeToSec()
382 buf[length] = rtc::CreateRandomId(); // ...and terminate it with junk. in TestASN1TimeToSec()
383 int64_t res = rtc::ASN1TimeToSec(buf, length - 1, entry.long_format); in TestASN1TimeToSec()
391 rtc::SSLIdentityParams params; in TestExpireTime()
396 params.not_after = rtc::CreateRandomId() % 0x80000000; in TestExpireTime()
399 params.key_params = rtc::KeyParams::ECDSA(rtc::EC_NIST_P256); in TestExpireTime()
400 SSLIdentity* identity = rtc::SSLIdentity::GenerateForTest(params); in TestExpireTime()