Debian Codegraph @

src/objective-c/tests/ThirdPartyTests/Libuv/LibuvGetHostnameTests.m

raw
1 /*
2 *
3 * Copyright 2021 gRPC authors.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 #import <XCTest/XCTest.h>
20
21 #import "test/runner.h"
22 #import "test/task.h"
23
24 // Tests in:
25 // libuv/test/test-gethostname.c
26
27 TEST_DECLARE(gethostname)
28
29 #define TASK_LIST_START_LOCAL static task_entry_t TEST_TASKS[] = {
30 TASK_LIST_START_LOCAL
31 TEST_ENTRY(gethostname)
32 TASK_LIST_END
33
34 @interface LibuvGetHostNameTests : XCTestCase
35
36 @end
37
38 @implementation LibuvGetHostNameTests
39
40 - (void)testGetHostNameAll {
41 for (task_entry_t* task = TEST_TASKS; task->main; task++) {
42 task->main();
43 }
44 }
45
46 @end