| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #elif defined(OS_POSIX) | 9 #elif defined(OS_POSIX) |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 fds_to_map, | 103 fds_to_map, |
| 104 debug_on_start); | 104 debug_on_start); |
| 105 channel->OnClientConnected(); | 105 channel->OnClientConnected(); |
| 106 break; | 106 break; |
| 107 case TEST_DESCRIPTOR_CLIENT: | 107 case TEST_DESCRIPTOR_CLIENT: |
| 108 ret = MultiProcessTest::SpawnChild(L"RunTestDescriptorClient", | 108 ret = MultiProcessTest::SpawnChild(L"RunTestDescriptorClient", |
| 109 fds_to_map, | 109 fds_to_map, |
| 110 debug_on_start); | 110 debug_on_start); |
| 111 channel->OnClientConnected(); | 111 channel->OnClientConnected(); |
| 112 break; | 112 break; |
| 113 case TEST_DESCRIPTOR_CLIENT_SANDBOXED: |
| 114 ret = MultiProcessTest::SpawnChild(L"RunTestDescriptorClientSandboxed", |
| 115 fds_to_map, |
| 116 debug_on_start); |
| 117 channel->OnClientConnected(); |
| 118 break; |
| 113 case TEST_REFLECTOR: | 119 case TEST_REFLECTOR: |
| 114 ret = MultiProcessTest::SpawnChild(L"RunReflector", | 120 ret = MultiProcessTest::SpawnChild(L"RunReflector", |
| 115 fds_to_map, | 121 fds_to_map, |
| 116 debug_on_start); | 122 debug_on_start); |
| 117 channel->OnClientConnected(); | 123 channel->OnClientConnected(); |
| 118 break; | 124 break; |
| 119 case FUZZER_SERVER: | 125 case FUZZER_SERVER: |
| 120 ret = MultiProcessTest::SpawnChild(L"RunFuzzServer", | 126 ret = MultiProcessTest::SpawnChild(L"RunFuzzServer", |
| 121 fds_to_map, | 127 fds_to_map, |
| 122 debug_on_start); | 128 debug_on_start); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 #endif // PERFORMANCE_TEST | 475 #endif // PERFORMANCE_TEST |
| 470 | 476 |
| 471 int main(int argc, char** argv) { | 477 int main(int argc, char** argv) { |
| 472 #ifdef PERFORMANCE_TEST | 478 #ifdef PERFORMANCE_TEST |
| 473 int retval = PerfTestSuite(argc, argv).Run(); | 479 int retval = PerfTestSuite(argc, argv).Run(); |
| 474 #else | 480 #else |
| 475 int retval = TestSuite(argc, argv).Run(); | 481 int retval = TestSuite(argc, argv).Run(); |
| 476 #endif | 482 #endif |
| 477 return retval; | 483 return retval; |
| 478 } | 484 } |
| OLD | NEW |