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" | |
35 | 34 |
36 static void Die(NSString *format, ...) __dead2; | 35 static void Die(NSString *format, ...) __dead2; |
37 | 36 |
38 static BOOL verbose = NO; | 37 static BOOL verbose = NO; |
39 static int32_t testCount = 0; | 38 static int32_t testCount = 0; |
40 | 39 |
41 static void Die(NSString *format, ...) { | 40 static void Die(NSString *format, ...) { |
42 va_list args; | 41 va_list args; |
43 va_start(args, format); | 42 va_start(args, format); |
44 NSString *msg = [[NSString alloc] initWithFormat:format arguments:args]; | 43 NSString *msg = [[NSString alloc] initWithFormat:format arguments:args]; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 while (notDone) { | 170 while (notDone) { |
172 @autoreleasepool { | 171 @autoreleasepool { |
173 notDone = DoTestIo(input, output); | 172 notDone = DoTestIo(input, output); |
174 } | 173 } |
175 } | 174 } |
176 | 175 |
177 NSLog(@"Received EOF from test runner after %d tests, exiting.", testCount); | 176 NSLog(@"Received EOF from test runner after %d tests, exiting.", testCount); |
178 } | 177 } |
179 return 0; | 178 return 0; |
180 } | 179 } |
OLD | NEW |