Flutter Engine
The Flutter Engine
shell
platform
darwin
ios
framework
Source
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
ConnectionCollectionTest
Definition:
connection_collection_test.mm:11
-[ConnectionCollectionTest testSimple]
void testSimple()
Definition:
connection_collection_test.mm:15
Generated on Sun Jun 23 2024 21:55:12 for Flutter Engine by
1.9.4