#include "cast/streaming/public/capture_recommendations.h"
#include <optional>
#include "cast/streaming/public/answer_messages.h"
#include "cast/streaming/resolution.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "util/chrono_helpers.h"
namespace openscreen::cast {
namespace capture_recommendations {
namespace {
const Recommendations kDefaultRecommendations{ … };
const DisplayDescription kEmptyDescription{ … };
const DisplayDescription kValidOnlyResolution{ … };
const DisplayDescription kValidOnlyAspectRatio{ … };
const DisplayDescription kValidOnlyAspectRatioSixteenNine{ … };
const DisplayDescription kValidOnlyVariable{ … };
const DisplayDescription kInvalidOnlyFixed{ … };
const DisplayDescription kValidFixedAspectRatio{ … };
const DisplayDescription kValidVariableAspectRatio{ … };
const DisplayDescription kValidFixedMissingAspectRatio{ … };
const DisplayDescription kValidDisplayFhd{ … };
const DisplayDescription kValidDisplayXga{ … };
const DisplayDescription kValidDisplayTiny{ … };
const DisplayDescription kValidDisplayMismatched{ … };
const Constraints kEmptyConstraints{ … };
const Constraints kValidConstraintsHighEnd{ … };
const Constraints kValidConstraintsLowEnd{ … };
}
TEST(CaptureRecommendationsTest, UsesDefaultsIfNoReceiverInformationAvailable) { … }
TEST(CaptureRecommendationsTest, EmptyDisplayDescription) { … }
TEST(CaptureRecommendationsTest, OnlyResolution) { … }
TEST(CaptureRecommendationsTest, OnlyAspectRatioFourThirds) { … }
TEST(CaptureRecommendationsTest, OnlyAspectRatioSixteenNine) { … }
TEST(CaptureRecommendationsTest, OnlyAspectRatioConstraint) { … }
TEST(CaptureRecommendationsTest, OnlyInvalidAspectRatioConstraint) { … }
TEST(CaptureRecommendationsTest, FixedAspectRatioConstraint) { … }
TEST(CaptureRecommendationsTest, VariableAspectRatioConstraint) { … }
TEST(CaptureRecommendationsTest, ResolutionWithFixedConstraint) { … }
TEST(CaptureRecommendationsTest, ExplicitFhdChangesMinimum) { … }
TEST(CaptureRecommendationsTest, XgaResolution) { … }
TEST(CaptureRecommendationsTest, MismatchedDisplayAndAspectRatio) { … }
TEST(CaptureRecommendationsTest, TinyDisplay) { … }
TEST(CaptureRecommendationsTest, EmptyConstraints) { … }
TEST(CaptureRecommendationsTest, HandlesHighEnd) { … }
TEST(CaptureRecommendationsTest, HandlesLowEnd) { … }
TEST(CaptureRecommendationsTest, HandlesTooSmallScreen) { … }
TEST(CaptureRecommendationsTest, HandlesMinimumSizeScreen) { … }
TEST(CaptureRecommendationsTest, UsesIntersectionOfDisplayAndConstraints) { … }
}
}