#include "media/learning/common/target_histogram.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace learning {
class TargetHistogramTest : public testing::Test { … };
TEST_F(TargetHistogramTest, EmptyTargetHistogramHasZeroCounts) { … }
TEST_F(TargetHistogramTest, AddingCountsWorks) { … }
TEST_F(TargetHistogramTest, MultipleValuesAreSeparate) { … }
TEST_F(TargetHistogramTest, AddingTargetValues) { … }
TEST_F(TargetHistogramTest, AddingTargetHistograms) { … }
TEST_F(TargetHistogramTest, FindSingularMaxFindsTheSingularMax) { … }
TEST_F(TargetHistogramTest, FindSingularMaxFindsTheSingularMaxAlternateOrder) { … }
TEST_F(TargetHistogramTest, FindSingularMaxReturnsFalsForNonSingularMax) { … }
TEST_F(TargetHistogramTest, FindSingularMaxIgnoresNonSingularNonMax) { … }
TEST_F(TargetHistogramTest, FindSingularMaxDoesntRequireCounts) { … }
TEST_F(TargetHistogramTest, EqualDistributionsCompareAsEqual) { … }
TEST_F(TargetHistogramTest, UnequalDistributionsCompareAsNotEqual) { … }
TEST_F(TargetHistogramTest, WeightedLabelledExamplesCountCorrectly) { … }
TEST_F(TargetHistogramTest, Normalize) { … }
TEST_F(TargetHistogramTest, NormalizeEmptyDistribution) { … }
}
}