#include "chrome/browser/extensions/api/safe_browsing_private/safe_browsing_util.h"
#include <string>
#include "chrome/common/extensions/api/safe_browsing_private.h"
#include "testing/gtest/include/gtest/gtest.h"
safe_browsing_private;
namespace extensions {
namespace {
const char kMainFrameUrl[] = …;
const char kIpAddress[] = …;
const char kReferrerUrl[] = …;
const bool kIsRetargeting = …;
const double kNavTime = …;
const char kServerRedirectUrl[] = …;
const bool kMaybeLaunched = …;
const bool kIsSubframeUrlRemoved = …;
const bool kIsSubframeReferrerUrlRemoved = …;
const bool kIsUrlRemovedByPolicy = …;
void InitializeFakeReferrerChainEntry(
std::string url,
safe_browsing::ReferrerChainEntry* referrer) { … }
void ValidateReferrerChain(
const safe_browsing_private::ReferrerChainEntry& referrer) { … }
}
TEST(SafeBrowsingUtilUnitTest, ReferrerToReferrerChainEntry) { … }
}