#include "components/captive_portal/content/captive_portal_service.h"
#include <memory>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/test_timeouts.h"
#include "base/time/time.h"
#include "components/captive_portal/core/captive_portal_testing_utils.h"
#include "components/captive_portal/core/captive_portal_types.h"
#include "components/embedder_support/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "net/base/net_errors.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace captive_portal {
namespace {
class CaptivePortalObserver { … };
}
class CaptivePortalServiceTest : public testing::Test,
public CaptivePortalDetectorTestBase { … };
TEST_F(CaptivePortalServiceTest, CaptivePortalTwoBrowserContexts) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalRecheckInternetConnected) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalRecheckError) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalRecheckBehindPortal) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalPrefDisabled) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalPrefDisabledWhileRunning) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalPrefDisabledWhilePending) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalPrefEnabledWhilePending) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalDisableForTests) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalJitter) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalRetryAfterSeconds) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalRetryAfterSecondsTooShort) { … }
TEST_F(CaptivePortalServiceTest, CaptivePortalRetryAfterDate) { … }
}