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 <OCMock/OCMock.h>
8 #import <XCTest/XCTest.h>
9 
11 
12 @interface AvailabilityVersionCheckTest : XCTestCase
13 @end
14 
15 @implementation AvailabilityVersionCheckTest
16 
17 - (void)testSimple {
18  auto maybe_product_version = flutter::ProductVersionFromSystemVersionPList();
19  XCTAssertTrue(maybe_product_version.has_value());
20  if (maybe_product_version.has_value()) {
21  auto product_version = maybe_product_version.value();
22  XCTAssertTrue(product_version > std::make_tuple(0, 0, 0));
23  }
24 }
25 
26 @end
AvailabilityVersionCheckTest
Definition: availability_version_check_test.mm:12
flutter::ProductVersionFromSystemVersionPList
std::optional< ProductVersion > ProductVersionFromSystemVersionPList()
Definition: availability_version_check.cc:53
availability_version_check.h