#include "util/integer_division.h"
#include <chrono>
#include "gtest/gtest.h"
namespace openscreen {
namespace {
constexpr int kDenominators[2] = …;
template <typename Input, typename Output>
void TestRangeAboutZero(int denom,
int range_of_numerators,
int first_expected_result,
Output (*function_to_test)(Input, Input)) { … }
TEST(IntegerDivision, DividesAndRoundsUpInts) { … }
TEST(IntegerDivision, DividesAndRoundsUpChronoDurations) { … }
TEST(IntegerDivision, DividesPositivesAndRoundsUp) { … }
TEST(IntegerDivision, DividesAndRoundsNearestInts) { … }
TEST(IntegerDivision, DividesAndRoundsNearestChronoDurations) { … }
TEST(IntegerDivision, DividesPositivesAndRoundsNearest) { … }
}
}