#include "quiche/quic/tools/quic_memory_cache_backend.h"
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/match.h"
#include "absl/strings/str_cat.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/tools/quic_backend_response.h"
#include "quiche/common/platform/api/quiche_file_utils.h"
#include "quiche/common/platform/api/quiche_test.h"
namespace quic {
namespace test {
namespace {
Response;
class TestRequestHandler : public QuicSimpleServerBackend::RequestHandler { … };
}
class QuicMemoryCacheBackendTest : public QuicTest { … };
TEST_F(QuicMemoryCacheBackendTest, GetResponseNoMatch) { … }
TEST_F(QuicMemoryCacheBackendTest, AddSimpleResponseGetResponse) { … }
TEST_F(QuicMemoryCacheBackendTest, AddResponse) { … }
#if defined(OS_IOS)
#define MAYBE_ReadsCacheDir …
#else
#define MAYBE_ReadsCacheDir …
#endif
TEST_F(QuicMemoryCacheBackendTest, MAYBE_ReadsCacheDir) { … }
#if defined(OS_IOS)
#define MAYBE_UsesOriginalUrl …
#else
#define MAYBE_UsesOriginalUrl …
#endif
TEST_F(QuicMemoryCacheBackendTest, MAYBE_UsesOriginalUrl) { … }
#if defined(OS_IOS)
#define MAYBE_UsesOriginalUrlOnly …
#else
#define MAYBE_UsesOriginalUrlOnly …
#endif
TEST_F(QuicMemoryCacheBackendTest, MAYBE_UsesOriginalUrlOnly) { … }
TEST_F(QuicMemoryCacheBackendTest, DefaultResponse) { … }
TEST_F(QuicMemoryCacheBackendTest, Echo) { … }
}
}