Tests for the NetworkSocketAPI
Dependents: BSDInterfaceTests ESP8266InterfaceTests LWIPInterfaceTests SpwfInterface_NSAPI_Tests ... more
NSAPITests.h@10:0d938ec9100c, 2016-04-21 (annotated)
- Committer:
- Christopher Haster
- Date:
- Thu Apr 21 01:54:51 2016 -0500
- Revision:
- 10:0d938ec9100c
- Parent:
- 6:d847da0dbf4f
Updated NSAPITests to match changes in the NSAPI
- separated tests to tcp/udp tests
- added appropriate open/close tests
- added flushing behaviour to take care of garbage
- increased test size to 2048 bytes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Christopher Haster |
1:796ba8b082b1 | 1 | /* NetworkSocketAPI Tests |
Christopher Haster |
1:796ba8b082b1 | 2 | * Copyright (c) 2015 ARM Limited |
Christopher Haster |
1:796ba8b082b1 | 3 | * |
Christopher Haster |
1:796ba8b082b1 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Christopher Haster |
1:796ba8b082b1 | 5 | * you may not use this file except in compliance with the License. |
Christopher Haster |
1:796ba8b082b1 | 6 | * You may obtain a copy of the License at |
Christopher Haster |
1:796ba8b082b1 | 7 | * |
Christopher Haster |
1:796ba8b082b1 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Christopher Haster |
1:796ba8b082b1 | 9 | * |
Christopher Haster |
1:796ba8b082b1 | 10 | * Unless required by applicable law or agreed to in writing, software |
Christopher Haster |
1:796ba8b082b1 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Christopher Haster |
1:796ba8b082b1 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Christopher Haster |
1:796ba8b082b1 | 13 | * See the License for the specific language governing permissions and |
Christopher Haster |
1:796ba8b082b1 | 14 | * limitations under the License. |
Christopher Haster |
1:796ba8b082b1 | 15 | */ |
Christopher Haster |
1:796ba8b082b1 | 16 | |
Christopher Haster |
1:796ba8b082b1 | 17 | #ifndef NSAPI_TESTS_H |
Christopher Haster |
1:796ba8b082b1 | 18 | #define NSAPI_TESTS_H |
Christopher Haster |
1:796ba8b082b1 | 19 | |
Christopher Haster |
10:0d938ec9100c | 20 | #include "NetworkStack.h" |
Christopher Haster |
1:796ba8b082b1 | 21 | |
Christopher Haster |
10:0d938ec9100c | 22 | int nsapi_tests(const char *name, NetworkStack *iface, const char *test_host, uint16_t test_port); |
Christopher Haster |
1:796ba8b082b1 | 23 | |
Christopher Haster |
1:796ba8b082b1 | 24 | #endif |