#include "chrome/browser/share/share_ranking.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "chrome/browser/share/fake_share_history.h"
#include "chrome/test/base/testing_profile.h"
#include "components/leveldb_proto/testing/fake_db.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace sharing {
ShareRankingStaticTest;
class ShareRankingTest : public testing::Test { … };
TEST(ShareRankingStaticTest, CountsMatchOldRanking) { … }
TEST(ShareRankingStaticTest, UnavailableAppDoesNotShow) { … }
TEST(ShareRankingStaticTest, HighAllUsageAppReplacesLowest) { … }
TEST(ShareRankingStaticTest, HighRecentUsageAppReplacesLowest) { … }
TEST(ShareRankingStaticTest, MoreTargetReplacesLast) { … }
TEST_F(ShareRankingStaticTest, PromotedTargetIsVisible) { … }
TEST_F(ShareRankingStaticTest, UsedAppNotPresentInRanking) { … }
TEST_F(ShareRankingStaticTest, LowestUsageItemSwappedIgnoringDisplayOrder) { … }
TEST_F(ShareRankingStaticTest, SystemAppsReplaceUnavailableInRankedOrder) { … }
TEST_F(ShareRankingStaticTest, NotEnoughPreferredApps) { … }
TEST_F(ShareRankingStaticTest, SwapAboveFold) { … }
TEST_F(ShareRankingTest, OldRankingContainsItemsWithNoRecentHistory) { … }
TEST_F(ShareRankingTest, InitialStateNoHistory) { … }
TEST_F(ShareRankingTest, DISABLED_AllHistoryUpdatesRanking) { … }
TEST_F(ShareRankingTest, DISABLED_NoPersistDoesNotPersist) { … }
TEST_F(ShareRankingTest, DISABLED_RecentHistoryUpdatesRanking) { … }
TEST_F(ShareRankingTest, ClearClearsDatabase) { … }
}