9 #include "gtest/gtest.h"
11 TEST(AvailabilityVersionCheck, CanDecodeSystemPlist) {
13 ASSERT_TRUE(maybe_product_version.has_value());
14 if (maybe_product_version.has_value()) {
15 auto product_version = maybe_product_version.value();
16 ASSERT_GT(product_version, std::make_tuple(0, 0, 0));
23 return ((major & 0xffff) << 16) | ((minor & 0xff) << 8) | (subminor & 0xff);
26 TEST(AvailabilityVersionCheck, CanParseAndCompareVersions) {
27 auto rhs_version = std::make_tuple(17, 2, 0);