OLD | NEW |
1 // Copyright 2014 Google Inc. All Rights Reserved. | 1 // Copyright 2014 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 20 matching lines...) Expand all Loading... |
31 namespace { | 31 namespace { |
32 | 32 |
33 typedef unsigned int (__stdcall* EndToEndTestFunction)(unsigned int); | 33 typedef unsigned int (__stdcall* EndToEndTestFunction)(unsigned int); |
34 | 34 |
35 #define _STRINGIFY(s) #s | 35 #define _STRINGIFY(s) #s |
36 #define STRINGIFY(s) _STRINGIFY(s) | 36 #define STRINGIFY(s) _STRINGIFY(s) |
37 | 37 |
38 // An array of test names. The test integer ID is the position of the name in | 38 // An array of test names. The test integer ID is the position of the name in |
39 // the array. | 39 // the array. |
40 const char* kTestNames[] = { | 40 const char* kTestNames[] = { |
41 #define DEFINE_TEST_NAME(enum_name, function_name, supported_compiler) STRINGIFY
(enum_name), | 41 #define DEFINE_TEST_NAME(enum_name, function_name) STRINGIFY(enum_name), |
42 END_TO_END_TEST_ID_TABLE(DEFINE_TEST_NAME) | 42 END_TO_END_TEST_ID_TABLE(DEFINE_TEST_NAME) |
43 #undef DEFINE_TEST_NAME | 43 #undef DEFINE_TEST_NAME |
44 }; | 44 }; |
45 | 45 |
46 // Top level configuration and parameters. | 46 // Top level configuration and parameters. |
47 LPTOP_LEVEL_EXCEPTION_FILTER previous_unhandled_exception_filter = NULL; | 47 LPTOP_LEVEL_EXCEPTION_FILTER previous_unhandled_exception_filter = NULL; |
48 base::FilePath dll; | 48 base::FilePath dll; |
49 size_t test_id = 0; | 49 size_t test_id = 0; |
50 bool expect_exception = false; | 50 bool expect_exception = false; |
51 | 51 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 if (expect_exception) { | 207 if (expect_exception) { |
208 LOG(ERROR) << "Expected an exception, but none was raised."; | 208 LOG(ERROR) << "Expected an exception, but none was raised."; |
209 LOG(ERROR) << "Command-line: " << cmd_line->GetCommandLineString(); | 209 LOG(ERROR) << "Command-line: " << cmd_line->GetCommandLineString(); |
210 Exit(1); | 210 Exit(1); |
211 } | 211 } |
212 Exit(0); | 212 Exit(0); |
213 | 213 |
214 LOG(ERROR) << "Something went terribly wrong."; | 214 LOG(ERROR) << "Something went terribly wrong."; |
215 return 1; | 215 return 1; |
216 } | 216 } |
OLD | NEW |