#include "components/optimization_guide/core/command_line_top_host_provider.h"
#include "base/command_line.h"
#include "components/optimization_guide/core/optimization_guide_switches.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace optimization_guide {
TEST(CommandLineTopHostProviderTest, DoesNotCreateIfFlagNotEnabled) { … }
TEST(CommandLineTopHostProviderTest, DoesNotCreateIfSwitchEnabledButNoHosts) { … }
TEST(CommandLineTopHostProviderTest, CreateIfFlagEnabledAndHasHosts) { … }
TEST(CommandLineTopHostProviderTest,
GetTopHostsMaxLessThanProvidedSizeReturnsEverything) { … }
TEST(CommandLineTopHostProviderTest,
GetTopHostsMaxGreaterThanTotalVectorSizeReturnsFirstN) { … }
}