#include "chrome/browser/media/media_engagement_preloaded_list.h"
#include <utility>
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/test/base/testing_profile.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace {
const base::FilePath kTestDataPath = …;
const base::FilePath kSampleDataPath = …;
const base::FilePath kMissingFilePath = …;
const base::FilePath kBadFormatFilePath = …;
const base::FilePath kEmptyFilePath = …;
const base::FilePath kFileReadFailedPath = …;
base::FilePath GeneratedTestDataRoot() { … }
}
class MediaEngagementPreloadedListTest : public ::testing::Test { … };
TEST_F(MediaEngagementPreloadedListTest, CheckOriginIsPresent) { … }
TEST_F(MediaEngagementPreloadedListTest, LoadMissingFile) { … }
TEST_F(MediaEngagementPreloadedListTest, LoadFileReadFailed) { … }
TEST_F(MediaEngagementPreloadedListTest, LoadBadFormatFile) { … }
TEST_F(MediaEngagementPreloadedListTest, LoadEmptyFile) { … }
TEST_F(MediaEngagementPreloadedListTest, CheckOriginIsPresent_UnsecureSchemes) { … }