#include "chrome/browser/preloading/preloading_prefs.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/battery/battery_saver.h"
#include "chrome/browser/data_saver/data_saver.h"
#include "chrome/browser/prefetch/pref_names.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "content/public/common/content_features.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
TEST(PreloadingPrefsTest, GetPreloadPagesState) { … }
TEST(PreloadingPrefsTest, SetPreloadPagesState) { … }
class PreloadingPrefsPreloadingTest : public ::testing::Test { … };
TEST_F(PreloadingPrefsPreloadingTest, IsSomePreloadingEnabled) { … }
class PreloadingPrefsWithBatterySaverTest
: public PreloadingPrefsPreloadingTest { … };
TEST_F(PreloadingPrefsWithBatterySaverTest, IsSomePreloadingEnabled) { … }
class PreloadingPrefsWithDataSaverTest : public PreloadingPrefsPreloadingTest { … };
TEST_F(PreloadingPrefsWithDataSaverTest, IsSomePreloadingEnabled) { … }