Flutter iOS Embedder
connection_collection_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 <OCMock/OCMock.h>
6
#import <XCTest/XCTest.h>
7
8
#import "
flutter/shell/platform/darwin/ios/framework/Source/connection_collection.h
"
9
10
@interface
ConnectionCollectionTest
: XCTestCase
11
@end
12
13
@implementation
ConnectionCollectionTest
14
15
- (void)testSimple {
16
auto
connections = std::make_unique<flutter::ConnectionCollection>();
17
flutter::ConnectionCollection::Connection
connection = connections->AquireConnection(
"foo"
);
18
XCTAssertTrue(connections->CleanupConnection(connection) ==
"foo"
);
19
XCTAssertTrue(connections->CleanupConnection(connection).empty());
20
}
21
22
@end
flutter::ConnectionCollection::Connection
int64_t Connection
Definition:
connection_collection.h:17
connection_collection.h
ConnectionCollectionTest
Definition:
connection_collection_test.mm:10
shell
platform
darwin
ios
framework
Source
connection_collection_test.mm
Generated by
1.8.17