chromium/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_util_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

// Tests that we correctly convert referrer chain entries from proto to idl.
TEST(SafeBrowsingUtilUnitTest, ReferrerToReferrerChainEntry) {}

}  // namespace extensions