chromium/components/dom_distiller/core/page_features_unittest.cc

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

#include "components/dom_distiller/core/page_features.h"

#include <stddef.h>

#include <memory>
#include <optional>
#include <string>
#include <vector>

#include "base/files/file_util.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/path_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace dom_distiller {
namespace {

struct SiteDerivedFeatures {};

// Returns std::nullopt in case of failure.
std::optional<SiteDerivedFeatures> ParseSiteDerivedFeatures(
    const base::Value& json) {}

// Reads a JSON "{[....]}" into a base::Value::List. Returns an empty
// list in case of failure.
base::Value::List ReadJsonList(const std::string& file_name) {}

// This test uses input data of core features and the output of the training
// pipeline's derived feature extraction to ensure that the extraction that is
// done in Chromium matches that in the training pipeline.
TEST(DomDistillerPageFeaturesTest, TestCalculateDerivedFeatures) {}

std::vector<double> DeriveFromPath(const GURL& url) {}

TEST(DomDistillerPageFeaturesTest, TestPath) {}

TEST(DomDistillerPageFeaturesTest, TestPath2) {}

TEST(DomDistillerPageFeaturesTest, TestPath3) {}

TEST(DomDistillerPageFeaturesTest, TestPath4) {}

}  // namespace
}  // namespace dom_distiller