#include "chrome/browser/ui/webui/top_chrome/profile_preload_candidate_selector.h"
#include <memory>
#include <string>
#include <vector>
#include "base/containers/contains.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/top_chrome/per_profile_webui_tracker.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/site_engagement/content/site_engagement_score.h"
#include "components/site_engagement/content/site_engagement_service.h"
#include "content/public/browser/web_contents.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "url/gurl.h"
SiteEngagementScore;
SiteEngagementService;
_;
Return;
namespace {
class MockPerProfileWebUITracker : public PerProfileWebUITracker { … };
}
namespace webui {
class ProfilePreloadCandidateSelectorTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(ProfilePreloadCandidateSelectorTest, IgnorePresentWebUI) { … }
TEST_F(ProfilePreloadCandidateSelectorTest, IgnoreLowEngagementWebUIs) { … }
TEST_F(ProfilePreloadCandidateSelectorTest, PreferHighEngagementWebUI) { … }
}