#include <memory>
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/utf_string_conversions.h"
#include "base/synchronization/lock.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace content {
namespace {
HttpRequest;
HttpResponse;
const char kReloadTestPath[] = …;
const char kNoCacheControl[] = …;
const char kMaxAgeCacheControl[] = …;
const char kNoCacheCacheControl[] = …;
struct RequestLog { … };
struct ExpectedCacheControl { … };
const ExpectedCacheControl kExpectedCacheControlForNormalLoad = …;
const ExpectedCacheControl kExpectedCacheControlForReload = …;
const ExpectedCacheControl kExpectedCacheControlForBypassingReload = …;
class ReloadCacheControlBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(ReloadCacheControlBrowserTest, NormalReload) { … }
IN_PROC_BROWSER_TEST_F(ReloadCacheControlBrowserTest, BypassingReload) { … }
IN_PROC_BROWSER_TEST_F(ReloadCacheControlBrowserTest, NavigateToSame) { … }
IN_PROC_BROWSER_TEST_F(ReloadCacheControlBrowserTest,
NormalReload_ControlledByServiceWorker) { … }
IN_PROC_BROWSER_TEST_F(ReloadCacheControlBrowserTest,
BypassingReload_ControlledByServiceWorker) { … }
}
}