Go to the source code of this file.
|
| TEST (TLSTicketKeyManager, TestSetGetTLSTicketKeySeeds) |
|
| TEST (TLSTicketKeyManager, TestValidateTicketSeedsSuccess) |
|
| TEST (TLSTicketKeyManager, TestValidateTicketSeedsIdempotent) |
|
| TEST (TLSTicketKeyManager, TestValidateTicketSeedsFailure) |
|
| TEST (TLSTicketKeyManager, TestValidateTicketSeedsSubsetPass) |
|
TEST |
( |
TLSTicketKeyManager |
, |
|
|
TestSetGetTLSTicketKeySeeds |
|
|
) |
| |
Definition at line 47 of file TLSTicketKeyManagerTest.cpp.
References ASSERT_EQ, and cpp.ast::next().
48 std::vector<std::string> origOld = {
"67"};
49 std::vector<std::string> origCurr = {
"68"};
50 std::vector<std::string> origNext = {
"69"};
55 manager.setTLSTicketKeySeeds(origOld, origCurr, origNext);
56 std::vector<std::string> old;
57 std::vector<std::string> curr;
58 std::vector<std::string>
next;
59 manager.getTLSTicketKeySeeds(old, curr, next);
#define ASSERT_EQ(val1, val2)
TEST |
( |
TLSTicketKeyManager |
, |
|
|
TestValidateTicketSeedsSuccess |
|
|
) |
| |
Definition at line 65 of file TLSTicketKeyManagerTest.cpp.
References EXPECT_CALL, and wangle::SSLStats::recordTLSTicketRotation().
67 EXPECT_CALL(stats, recordTLSTicketRotation(
true)).Times(2);
69 std::vector<std::string> origOld = {
"67",
"77"};
70 std::vector<std::string> origCurr = {
"68",
"78"};
71 std::vector<std::string> origNext = {
"69",
"79"};
74 std::vector<std::string> newOld = {
"68",
"78"};
75 std::vector<std::string> newCurr = {
"69",
"79"};
76 std::vector<std::string> newNext = {
"70",
"80"};
81 manager.setTLSTicketKeySeeds(origOld, origCurr, origNext);
82 manager.setTLSTicketKeySeeds(newOld, newCurr, newNext);
#define EXPECT_CALL(obj, call)
TEST |
( |
TLSTicketKeyManager |
, |
|
|
TestValidateTicketSeedsIdempotent |
|
|
) |
| |
Definition at line 85 of file TLSTicketKeyManagerTest.cpp.
References EXPECT_CALL, and wangle::SSLStats::recordTLSTicketRotation().
87 EXPECT_CALL(stats, recordTLSTicketRotation(
true)).Times(2);
89 std::vector<std::string> origOld = {
"67",
"77"};
90 std::vector<std::string> origCurr = {
"68",
"78"};
91 std::vector<std::string> origNext = {
"69",
"79"};
96 manager.setTLSTicketKeySeeds(origOld, origCurr, origNext);
97 manager.setTLSTicketKeySeeds(origOld, origCurr, origNext);
#define EXPECT_CALL(obj, call)
TEST |
( |
TLSTicketKeyManager |
, |
|
|
TestValidateTicketSeedsFailure |
|
|
) |
| |
Definition at line 100 of file TLSTicketKeyManagerTest.cpp.
References EXPECT_CALL, and wangle::SSLStats::recordTLSTicketRotation().
102 InSequence inSequence;
103 EXPECT_CALL(stats, recordTLSTicketRotation(
true)).Times(1);
104 EXPECT_CALL(stats, recordTLSTicketRotation(
false)).Times(1);
106 std::vector<std::string> origOld = {
"67",
"77"};
107 std::vector<std::string> origCurr = {
"68",
"78"};
108 std::vector<std::string> origNext = {
"69",
"79"};
111 std::vector<std::string> newOld = {
"69",
"79"};
112 std::vector<std::string> newCurr = {
"70",
"80"};
113 std::vector<std::string> newNext = {
"71",
"81"};
118 manager.setTLSTicketKeySeeds(origOld, origCurr, origNext);
119 manager.setTLSTicketKeySeeds(newOld, newCurr, newNext);
#define EXPECT_CALL(obj, call)
TEST |
( |
TLSTicketKeyManager |
, |
|
|
TestValidateTicketSeedsSubsetPass |
|
|
) |
| |
Definition at line 122 of file TLSTicketKeyManagerTest.cpp.
References EXPECT_CALL, and wangle::SSLStats::recordTLSTicketRotation().
124 InSequence inSequence;
125 EXPECT_CALL(stats, recordTLSTicketRotation(
true)).Times(2);
127 std::vector<std::string> origOld = {
"67"};
128 std::vector<std::string> origCurr = {
"68"};
129 std::vector<std::string> origNext = {
"69"};
132 std::vector<std::string> newOld = {
"68",
"78"};
133 std::vector<std::string> newCurr = {
"69"};
134 std::vector<std::string> newNext = {
"70",
"80"};
139 manager.setTLSTicketKeySeeds(origOld, origCurr, origNext);
140 manager.setTLSTicketKeySeeds(newOld, newCurr, newNext);
#define EXPECT_CALL(obj, call)