chromium/components/content_relationship_verification/digital_asset_links_handler_unittest.cc

// Copyright 2017 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/content_relationship_verification/digital_asset_links_handler.h"

#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/json/json_reader.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/values.h"
#include "content/public/test/browser_task_environment.h"
#include "net/base/net_errors.h"
#include "net/http/http_status_code.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace {

const char kStatementList[] =;

const char kDomain[] =;
const char kValidPackage[] =;
const char kValidRelation[] =;
const std::vector<std::string> kValidFingerprint{};

}  // namespace

namespace content_relationship_verification {
namespace {

class DigitalAssetLinksHandlerTest : public ::testing::Test {};

}  // namespace

TEST_F(DigitalAssetLinksHandlerTest, CorrectAssetLinksUrl) {}

TEST_F(DigitalAssetLinksHandlerTest, PositiveResponse) {}

TEST_F(DigitalAssetLinksHandlerTest, PackageMismatch) {}

TEST_F(DigitalAssetLinksHandlerTest, SignatureMismatch) {}

TEST_F(DigitalAssetLinksHandlerTest, RelationshipMismatch) {}

TEST_F(DigitalAssetLinksHandlerTest, StatementIsolation) {}

TEST_F(DigitalAssetLinksHandlerTest, BadAssetLinks_Empty) {}

TEST_F(DigitalAssetLinksHandlerTest, BadAssetLinks_NotList) {}

TEST_F(DigitalAssetLinksHandlerTest, BadAssetLinks_StatementNotDict) {}

TEST_F(DigitalAssetLinksHandlerTest, BadAssetLinks_MissingFields) {}

TEST_F(DigitalAssetLinksHandlerTest, BadRequest) {}

TEST_F(DigitalAssetLinksHandlerTest, NetworkError) {}

TEST_F(DigitalAssetLinksHandlerTest, NetworkDisconnected) {}

TEST_F(DigitalAssetLinksHandlerTest, WebApkPositiveResponse) {}

TEST_F(DigitalAssetLinksHandlerTest, WebApkNegativeResponse) {}

TEST_F(DigitalAssetLinksHandlerTest, PositiveResponseMultipleFingerprints) {}

TEST_F(DigitalAssetLinksHandlerTest, NegativeResponseMissingOneFingerprint) {}

}  // namespace content_relationship_verification