OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2015 Google Inc. All rights reserved. | 2 // Copyright 2015 Google Inc. All rights reserved. |
3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... |
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | 30 |
31 #import <Foundation/Foundation.h> | 31 #import <Foundation/Foundation.h> |
32 | 32 |
33 #import "Conformance.pbobjc.h" | 33 #import "Conformance.pbobjc.h" |
| 34 #import "google/protobuf/TestMessagesProto3.pbobjc.h" |
34 | 35 |
35 static void Die(NSString *format, ...) __dead2; | 36 static void Die(NSString *format, ...) __dead2; |
36 | 37 |
37 static BOOL verbose = NO; | 38 static BOOL verbose = NO; |
38 static int32_t testCount = 0; | 39 static int32_t testCount = 0; |
39 | 40 |
40 static void Die(NSString *format, ...) { | 41 static void Die(NSString *format, ...) { |
41 va_list args; | 42 va_list args; |
42 va_start(args, format); | 43 va_start(args, format); |
43 NSString *msg = [[NSString alloc] initWithFormat:format arguments:args]; | 44 NSString *msg = [[NSString alloc] initWithFormat:format arguments:args]; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 while (notDone) { | 171 while (notDone) { |
171 @autoreleasepool { | 172 @autoreleasepool { |
172 notDone = DoTestIo(input, output); | 173 notDone = DoTestIo(input, output); |
173 } | 174 } |
174 } | 175 } |
175 | 176 |
176 NSLog(@"Received EOF from test runner after %d tests, exiting.", testCount); | 177 NSLog(@"Received EOF from test runner after %d tests, exiting.", testCount); |
177 } | 178 } |
178 return 0; | 179 return 0; |
179 } | 180 } |
OLD | NEW |