#include "quiche/blind_sign_auth/cached_blind_sign_auth.h"
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "absl/types/span.h"
#include "quiche/blind_sign_auth/blind_sign_auth_interface.h"
#include "quiche/blind_sign_auth/test_tools/mock_blind_sign_auth_interface.h"
#include "quiche/common/platform/api/quiche_mutex.h"
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/test_tools/quiche_test_utils.h"
namespace quiche {
namespace test {
namespace {
_;
InvokeArgument;
Unused;
class CachedBlindSignAuthTest : public QuicheTest { … };
TEST_F(CachedBlindSignAuthTest, TestGetTokensOneCallSuccessful) { … }
TEST_F(CachedBlindSignAuthTest, TestGetTokensMultipleRemoteCallsSuccessful) { … }
TEST_F(CachedBlindSignAuthTest, TestGetTokensSecondRequestFilledFromCache) { … }
TEST_F(CachedBlindSignAuthTest, TestGetTokensThirdRequestRefillsCache) { … }
TEST_F(CachedBlindSignAuthTest, TestGetTokensRequestTooLarge) { … }
TEST_F(CachedBlindSignAuthTest, TestGetTokensRequestNegative) { … }
TEST_F(CachedBlindSignAuthTest, TestHandleGetTokensResponseErrorHandling) { … }
TEST_F(CachedBlindSignAuthTest, TestGetTokensZeroTokensRequested) { … }
TEST_F(CachedBlindSignAuthTest, TestExpiredTokensArePruned) { … }
TEST_F(CachedBlindSignAuthTest, TestClearCacheRemovesTokens) { … }
}
}
}