#include "components/feature_engagement/public/configuration.h"
#include <string>
#include "base/notreached.h"
namespace feature_engagement {
namespace {
std::ostream& operator<<(std::ostream& os, const SessionRateImpact::Type type) { … }
std::ostream& operator<<(std::ostream& os, BlockedBy::Type type) { … }
std::ostream& operator<<(std::ostream& os, Blocking::Type type) { … }
}
Comparator::Comparator() : … { … }
Comparator::Comparator(ComparatorType type, uint32_t value)
: … { … }
Comparator::~Comparator() = default;
bool Comparator::MeetsCriteria(uint32_t v) const { … }
std::ostream& operator<<(std::ostream& os, const Comparator& comparator) { … }
EventConfig::EventConfig() : … { … }
EventConfig::EventConfig(const std::string& name,
Comparator comparator,
uint32_t window,
uint32_t storage)
: … { … }
EventConfig::~EventConfig() = default;
std::ostream& operator<<(std::ostream& os, const EventConfig& event_config) { … }
SessionRateImpact::SessionRateImpact() : … { … }
SessionRateImpact::SessionRateImpact(const SessionRateImpact& other) = default;
SessionRateImpact::~SessionRateImpact() = default;
BlockedBy::BlockedBy() = default;
BlockedBy::BlockedBy(const BlockedBy& other) = default;
BlockedBy::~BlockedBy() = default;
Blocking::Blocking() = default;
Blocking::Blocking(const Blocking& other) = default;
Blocking::~Blocking() = default;
SnoozeParams::SnoozeParams() = default;
SnoozeParams::SnoozeParams(const SnoozeParams& other) = default;
SnoozeParams::~SnoozeParams() = default;
std::ostream& operator<<(std::ostream& os, const BlockedBy& blocked_by) { … }
std::ostream& operator<<(std::ostream& os, const Blocking& blocking) { … }
std::ostream& operator<<(std::ostream& os, const SnoozeParams& snooze_params) { … }
std::ostream& operator<<(std::ostream& os, const SessionRateImpact& impact) { … }
bool operator==(const SessionRateImpact& lhs, const SessionRateImpact& rhs) { … }
bool operator==(const BlockedBy& lhs, const BlockedBy& rhs) { … }
bool operator==(const Blocking& lhs, const Blocking& rhs) { … }
bool operator==(const SnoozeParams& lhs, const SnoozeParams& rhs) { … }
FeatureConfig::FeatureConfig() = default;
FeatureConfig::FeatureConfig(const FeatureConfig& other) = default;
FeatureConfig::~FeatureConfig() = default;
bool operator==(const Comparator& lhs, const Comparator& rhs) { … }
bool operator<(const Comparator& lhs, const Comparator& rhs) { … }
bool operator==(const EventConfig& lhs, const EventConfig& rhs) { … }
bool operator!=(const EventConfig& lhs, const EventConfig& rhs) { … }
bool operator<(const EventConfig& lhs, const EventConfig& rhs) { … }
bool operator==(const FeatureConfig& lhs, const FeatureConfig& rhs) { … }
std::ostream& operator<<(std::ostream& os,
const FeatureConfig& feature_config) { … }
GroupConfig::GroupConfig() = default;
GroupConfig::GroupConfig(const GroupConfig& other) = default;
GroupConfig::~GroupConfig() = default;
bool operator==(const GroupConfig& lhs, const GroupConfig& rhs) { … }
std::ostream& operator<<(std::ostream& os, const GroupConfig& group_config) { … }
}