Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 Google Inc. All Rights Reserved. | 1 // Copyright 2013 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 decl(kBBEntryCallOnce, BBEntryCallOnce) \ | 185 decl(kBBEntryCallOnce, BBEntryCallOnce) \ |
| 186 decl(kBBEntryCallTree, BBEntryCallTree) \ | 186 decl(kBBEntryCallTree, BBEntryCallTree) \ |
| 187 decl(kBBEntryCallRecursive, BBEntryCallRecursive) \ | 187 decl(kBBEntryCallRecursive, BBEntryCallRecursive) \ |
| 188 decl(kCoverage1, testing::coverage_func1) \ | 188 decl(kCoverage1, testing::coverage_func1) \ |
| 189 decl(kCoverage2, testing::coverage_func2) \ | 189 decl(kCoverage2, testing::coverage_func2) \ |
| 190 decl(kCoverage3, testing::coverage_func3) \ | 190 decl(kCoverage3, testing::coverage_func3) \ |
| 191 decl(kProfileCallExport, testing::CallExportedFunction) \ | 191 decl(kProfileCallExport, testing::CallExportedFunction) \ |
| 192 decl(kProfileGetMyRVA, testing::GetMyRVA) | 192 decl(kProfileGetMyRVA, testing::GetMyRVA) |
| 193 | 193 |
| 194 // Only run the Asan tests for the Clang builds. | 194 // Only run the Asan tests for the Clang builds. |
| 195 // The order of inclusion matters because it affects the numbers assigned to | |
|
Sébastien Marchand
2017/07/21 15:14:26
s/numbers/IDs/
| |
| 196 // test cases. First include Asan tests then non Asan tests. | |
| 195 #ifdef __clang__ | 197 #ifdef __clang__ |
| 196 #define END_TO_END_TEST_ID_TABLE(decl) END_TO_END_ASAN_TESTS(decl) | 198 #define END_TO_END_TEST_ID_TABLE(decl) END_TO_END_ASAN_TESTS(decl) |
| 197 #else | 199 #else |
| 198 #define END_TO_END_TEST_ID_TABLE(decl) \ | 200 #define END_TO_END_TEST_ID_TABLE(decl) \ |
| 199 END_TO_END_NON_ASAN_TESTS(decl) END_TO_END_ASAN_TESTS(decl) | 201 END_TO_END_ASAN_TESTS(decl) END_TO_END_NON_ASAN_TESTS(decl) |
| 200 #endif // __clang__ | 202 #endif // __clang__ |
| 201 | 203 |
| 202 // This enumeration contains an unique id for each end to end test. It is used | 204 // This enumeration contains an unique id for each end to end test. It is used |
| 203 // to perform an indirect call through the DLL entry point 'EndToEndTest'. | 205 // to perform an indirect call through the DLL entry point 'EndToEndTest'. |
| 204 enum EndToEndTestId { | 206 enum EndToEndTestId { |
| 205 #define DECLARE_END_TO_END_ENUM(enum_name, function_to_call) enum_name, | 207 #define DECLARE_END_TO_END_ENUM(enum_name, function_to_call) enum_name, |
| 206 END_TO_END_TEST_ID_TABLE(DECLARE_END_TO_END_ENUM) | 208 END_TO_END_TEST_ID_TABLE(DECLARE_END_TO_END_ENUM) |
| 207 #undef DECLARE_END_TO_END_ENUM | 209 #undef DECLARE_END_TO_END_ENUM |
| 208 }; | 210 }; |
| 209 | 211 |
| 210 } // namespace testing | 212 } // namespace testing |
| 211 | 213 |
| 212 #endif // SYZYGY_INTEGRATION_TESTS_INTEGRATION_TESTS_DLL_H_ | 214 #endif // SYZYGY_INTEGRATION_TESTS_INTEGRATION_TESTS_DLL_H_ |
| OLD | NEW |