chromium/components/feed/core/v2/test/stream_builder.cc

// Copyright 2020 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/feed/core/v2/test/stream_builder.h"

#include <utility>

#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "components/feed/core/proto/v2/store.pb.h"
#include "components/feed/core/proto/v2/wire/eventid.pb.h"
#include "components/feed/core/proto/v2/wire/web_feeds.pb.h"
#include "components/feed/core/v2/feedstore_util.h"
#include "components/feed/core/v2/proto_util.h"
#include "components/feed/core/v2/protocol_translator.h"

namespace feed {
namespace {
void AddContentHashes(const feedstore::Content& content,
                      feedstore::StreamData& stream_data) {}
}  // namespace

base::Time kTestTimeEpoch =;
AccountInfo TestAccountInfo() {}

ContentId MakeContentId(ContentId::Type type,
                        std::string content_domain,
                        int id_number) {}

ContentId MakeClusterId(int id_number) {}

ContentId MakeContentContentId(int id_number) {}

ContentId MakeNoticeCardContentContentId(int id_number) {}

ContentId MakeSharedStateContentId(int id_number) {}

ContentId MakeRootId(int id_number) {}

std::string MakeRootEventId(int id_number) {}

ContentId MakeSharedStateId(int id_number) {}

feedstore::StreamStructure MakeStream(int id_number) {}

feedstore::StreamStructure MakeCluster(int id_number, ContentId parent) {}

feedstore::StreamStructure MakeNoticeCardCluster(int id_number,
                                                 ContentId parent) {}

feedstore::StreamStructure MakeContentNode(int id_number, ContentId parent) {}

feedstore::StreamStructure MakeNoticeCardContentNode(int id_number,
                                                     ContentId parent) {}

feedstore::StreamStructure MakeRemove(ContentId id) {}

feedstore::StreamStructure MakeClearAll() {}

feedstore::StreamSharedState MakeSharedState(int id_number) {}

feedstore::Content MakeContent(int id_number) {}

feedstore::Content MakeNoticeCardContent(int id_number) {}

feedstore::DataOperation MakeOperation(feedstore::StreamStructure structure) {}

feedstore::DataOperation MakeOperation(feedstore::Content content) {}

feedstore::Record MakeRecord(feedstore::Content content) {}

feedstore::Record MakeRecord(
    feedstore::StreamStructureSet stream_structure_set) {}

feedstore::Record MakeRecord(feedstore::StreamSharedState shared_state) {}

feedstore::Record MakeRecord(feedstore::StreamData stream_data) {}

std::vector<feedstore::DataOperation> MakeTypicalStreamOperations() {}

StreamModelUpdateRequestGenerator::StreamModelUpdateRequestGenerator() =
    default;
StreamModelUpdateRequestGenerator::~StreamModelUpdateRequestGenerator() =
    default;

std::unique_ptr<StreamModelUpdateRequest>
StreamModelUpdateRequestGenerator::MakeFirstPage(int first_cluster_id,
                                                 int num_cards) const {}

std::unique_ptr<StreamModelUpdateRequest>
StreamModelUpdateRequestGenerator::MakeFirstPageWithSpecificContents(
    const std::vector<int>& id_numbers) const {}

std::unique_ptr<StreamModelUpdateRequest>
StreamModelUpdateRequestGenerator::MakeNextPage(
    int page_number,
    StreamModelUpdateRequest::Source source) const {}

std::unique_ptr<StreamModelUpdateRequest> MakeTypicalInitialModelState(
    int first_cluster_id,
    base::Time last_added_time,
    bool signed_in,
    bool logging_enabled,
    bool privacy_notice_fulfilled,
    std::string stream_key) {}

std::unique_ptr<StreamModelUpdateRequest> MakeTypicalRefreshModelState(
    int first_cluster_id,
    base::Time last_added_time,
    bool signed_in,
    bool logging_enabled) {}

std::unique_ptr<StreamModelUpdateRequest> MakeTypicalNextPageState(
    int page_number,
    base::Time last_added_time,
    bool signed_in,
    bool logging_enabled,
    bool privacy_notice_fulfilled,
    StreamModelUpdateRequest::Source source) {}

feedstore::WebFeedInfo MakeWebFeedInfo(const std::string& name) {}

feedwire::webfeed::WebFeed MakeWireWebFeed(const std::string& name) {}

feedwire::webfeed::FollowWebFeedResponse SuccessfulFollowResponse(
    const std::string& follow_name) {}

feedwire::webfeed::UnfollowWebFeedResponse SuccessfulUnfollowResponse() {}
feedwire::webfeed::QueryWebFeedResponse SuccessfulQueryResponse(
    const std::string& query_name) {}

WebFeedPageInformation MakeWebFeedPageInformation(const std::string& url) {}

feedwire::webfeed::WebFeedMatcher MakeDomainMatcher(const std::string& domain) {}

}  // namespace feed