Flutter iOS Embedder
availability_version_check_test.mm
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #import <tuple>
6 
7 #import <XCTest/XCTest.h>
8 
10 
11 @interface AvailabilityVersionCheckTest : XCTestCase
12 @end
13 
14 @implementation AvailabilityVersionCheckTest
15 
16 - (void)testSimple {
17  auto maybe_product_version = flutter::ProductVersionFromSystemVersionPList();
18  XCTAssertTrue(maybe_product_version.has_value());
19  if (maybe_product_version.has_value()) {
20  auto product_version = maybe_product_version.value();
21  XCTAssertTrue(product_version > std::make_tuple(0, 0, 0));
22  }
23 }
24 
25 @end
std::optional< ProductVersion > ProductVersionFromSystemVersionPList()