#include "chrome/browser/supervised_user/supervised_user_navigation_throttle.h"
#include <memory>
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/supervised_user/supervised_user_service_factory.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/safe_search_api/fake_url_checker_client.h"
#include "components/supervised_user/core/browser/supervised_user_service.h"
#include "components/supervised_user/core/browser/supervised_user_url_filter.h"
#include "components/supervised_user/core/browser/supervised_user_utils.h"
#include "components/supervised_user/core/common/supervised_user_constants.h"
#include "components/supervised_user/test_support/kids_management_api_server_mock.h"
#include "components/supervised_user/test_support/supervised_user_url_filter_test_utils.h"
#include "content/public/browser/navigation_throttle.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/navigation_simulator.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace supervised_user {
namespace {
static const char* kExampleURL = …;
class MockSupervisedUserURLFilter
: public supervised_user::SupervisedUserURLFilter { … };
}
class SupervisedUserNavigationThrottleTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(SupervisedUserNavigationThrottleTest, AllowedUrlsRecordedInAllowBucket) { … }
TEST_F(SupervisedUserNavigationThrottleTest,
BlocklistedUrlsRecordedInBlockManualBucket) { … }
TEST_F(SupervisedUserNavigationThrottleTest,
AllSitesBlockedRecordedInBlockNotInAllowlistBucket) { … }
TEST_F(SupervisedUserNavigationThrottleTest,
BlockedMatureSitesRecordedInBlockSafeSitesBucket) { … }
}