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, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 #include "syzygy/integration_tests/integration_tests_dll.h" | 15 #include "syzygy/integration_tests/integration_tests_dll.h" |
16 | 16 |
17 #include <windows.h> // NOLINT | 17 #include <windows.h> // NOLINT |
18 #include <stdint.h> | 18 #include <stdint.h> |
19 | 19 |
20 #include "syzygy/integration_tests/asan_check_tests.h" | 20 #include "syzygy/integration_tests/asan_check_tests.h" |
21 #include "syzygy/integration_tests/asan_interceptors_tests.h" | 21 #include "syzygy/integration_tests/asan_interceptors_tests.h" |
22 #include "syzygy/integration_tests/asan_page_protection_tests.h" | 22 #include "syzygy/integration_tests/asan_page_protection_tests.h" |
| 23 #ifndef __clang__ |
23 #include "syzygy/integration_tests/bb_entry_tests.h" | 24 #include "syzygy/integration_tests/bb_entry_tests.h" |
24 #include "syzygy/integration_tests/behavior_tests.h" | 25 #include "syzygy/integration_tests/behavior_tests.h" |
25 #include "syzygy/integration_tests/coverage_tests.h" | 26 #include "syzygy/integration_tests/coverage_tests.h" |
| 27 #include "syzygy/integration_tests/profile_tests.h" |
| 28 #endif // __clang__ |
26 #include "syzygy/integration_tests/deferred_free_tests.h" | 29 #include "syzygy/integration_tests/deferred_free_tests.h" |
27 #include "syzygy/integration_tests/profile_tests.h" | |
28 | 30 |
29 BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { | 31 BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { |
30 return TRUE; | 32 return TRUE; |
31 } | 33 } |
32 | 34 |
33 unsigned int CALLBACK EndToEndTest(testing::EndToEndTestId test) { | 35 unsigned int CALLBACK EndToEndTest(testing::EndToEndTestId test) { |
34 switch (test) { | 36 switch (test) { |
35 #define DECLARE_END_TO_END_SWITCH_TABLE(enum_name, function_to_call) \ | 37 #define DECLARE_END_TO_END_SWITCH_TABLE(enum_name, function_to_call) \ |
36 case testing::enum_name: { \ | 38 case testing::enum_name: { \ |
37 return function_to_call(); \ | 39 return function_to_call(); \ |
38 } | 40 } |
39 END_TO_END_TEST_ID_TABLE(DECLARE_END_TO_END_SWITCH_TABLE) | 41 END_TO_END_TEST_ID_TABLE(DECLARE_END_TO_END_SWITCH_TABLE) |
40 #undef DECLARE_END_TO_END_SWITCH_TABLE | 42 #undef DECLARE_END_TO_END_SWITCH_TABLE |
41 default: | 43 default: |
42 return 0; | 44 return 0; |
43 } | 45 } |
44 } | 46 } |
OLD | NEW |