proxygen
|
#include <boost/filesystem.hpp>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>
#include <folly/File.h>
#include <folly/FileUtil.h>
#include <folly/Range.h>
#include <wangle/ssl/TLSCredProcessor.h>
#include <wangle/ssl/test/TicketUtil.h>
Go to the source code of this file.
Classes | |
class | ProcessTicketTest |
Functions | |
void | expectValidData (folly::Optional< wangle::TLSTicketKeySeeds > seeds) |
TEST_F (ProcessTicketTest, ParseTicketFile) | |
TEST_F (ProcessTicketTest, ParseInvalidFile) | |
TEST_F (ProcessTicketTest, handleAbsentFile) | |
void | updateModifiedTime (const std::string &fileName, int elapsed) |
TEST_F (ProcessTicketTest, TestUpdateTicketFile) | |
TEST_F (ProcessTicketTest, TestMultipleCerts) | |
TEST_F (ProcessTicketTest, TestSetPullInterval) | |
void expectValidData | ( | folly::Optional< wangle::TLSTicketKeySeeds > | seeds | ) |
Definition at line 51 of file TLSCredProcessorTest.cpp.
References ASSERT_EQ, ASSERT_TRUE, wangle::TLSTicketKeySeeds::currentSeeds, wangle::TLSTicketKeySeeds::newSeeds, and wangle::TLSTicketKeySeeds::oldSeeds.
Referenced by TEST_F().
TEST_F | ( | ProcessTicketTest | , |
ParseTicketFile | |||
) |
Definition at line 60 of file TLSCredProcessorTest.cpp.
References expectValidData(), validTicketData, and folly::writeFile().
TEST_F | ( | ProcessTicketTest | , |
ParseInvalidFile | |||
) |
Definition at line 66 of file TLSCredProcessorTest.cpp.
References ASSERT_FALSE, invalidTicketData, and folly::writeFile().
TEST_F | ( | ProcessTicketTest | , |
handleAbsentFile | |||
) |
TEST_F | ( | ProcessTicketTest | , |
TestUpdateTicketFile | |||
) |
Definition at line 85 of file TLSCredProcessorTest.cpp.
References wangle::TLSCredProcessor::addCertCallback(), wangle::TLSCredProcessor::addTicketCallback(), ASSERT_FALSE, ASSERT_TRUE, EXPECT_TRUE, folly::Baton< MayBlock, Atom >::post(), wangle::TLSCredProcessor::setCertPathsToWatch(), wangle::TLSCredProcessor::setTicketPathToWatch(), folly::Baton< MayBlock, Atom >::try_wait_for(), updateModifiedTime(), validTicketData, and folly::writeFile().
TEST_F | ( | ProcessTicketTest | , |
TestMultipleCerts | |||
) |
Definition at line 114 of file TLSCredProcessorTest.cpp.
References wangle::TLSCredProcessor::addCertCallback(), EXPECT_TRUE, folly::Baton< MayBlock, Atom >::post(), folly::Baton< MayBlock, Atom >::reset(), wangle::TLSCredProcessor::setCertPathsToWatch(), folly::Baton< MayBlock, Atom >::try_wait_for(), updateModifiedTime(), validTicketData, and folly::writeFile().
TEST_F | ( | ProcessTicketTest | , |
TestSetPullInterval | |||
) |
Definition at line 130 of file TLSCredProcessorTest.cpp.
References wangle::TLSCredProcessor::addCertCallback(), wangle::TLSCredProcessor::addTicketCallback(), ASSERT_FALSE, ASSERT_TRUE, EXPECT_TRUE, folly::Baton< MayBlock, Atom >::post(), wangle::TLSCredProcessor::setCertPathsToWatch(), wangle::TLSCredProcessor::setPollInterval(), wangle::TLSCredProcessor::setTicketPathToWatch(), folly::Baton< MayBlock, Atom >::try_wait_for(), updateModifiedTime(), validTicketData, and folly::writeFile().
void updateModifiedTime | ( | const std::string & | fileName, |
int | elapsed | ||
) |
Definition at line 77 of file TLSCredProcessorTest.cpp.
Referenced by TEST_F().