#include "chrome/browser/performance_manager/user_tuning/profile_discard_opt_out_list_helper.h"
#include <map>
#include "base/json/values_util.h"
#include "components/performance_manager/public/user_tuning/prefs.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace performance_manager::user_tuning {
namespace {
const char kFirstProfileUniqueId[] = …;
const char kSecondProfileUniqueId[] = …;
class FakeProfileDiscardOptOutListHelperDelegate
: public ProfileDiscardOptOutListHelper::Delegate { … };
}
class ProfileDiscardOptOutListHelperTest : public testing::Test { … };
TEST_F(ProfileDiscardOptOutListHelperTest, TestUserSpecifiedList) { … }
TEST_F(ProfileDiscardOptOutListHelperTest, TestPolicySpecifiedList) { … }
TEST_F(ProfileDiscardOptOutListHelperTest,
TestPolicyAndUserSpecifiedListsMerged) { … }
TEST_F(ProfileDiscardOptOutListHelperTest, TestListsArePerProfile) { … }
}