| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2007 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2007 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 // | 10 // |
| 11 // A reuseable entry point for gunit tests. | 11 // A reuseable entry point for gunit tests. |
| 12 | 12 |
| 13 #if defined(WEBRTC_WIN) | 13 #if defined(WEBRTC_WIN) |
| 14 #include <crtdbg.h> | 14 #include <crtdbg.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #include "webrtc/base/flags.h" | 17 #include "webrtc/rtc_base/fileutils.h" |
| 18 #include "webrtc/base/fileutils.h" | 18 #include "webrtc/rtc_base/flags.h" |
| 19 #include "webrtc/base/gunit.h" | 19 #include "webrtc/rtc_base/gunit.h" |
| 20 #include "webrtc/base/logging.h" | 20 #include "webrtc/rtc_base/logging.h" |
| 21 #include "webrtc/base/ssladapter.h" | 21 #include "webrtc/rtc_base/ssladapter.h" |
| 22 #include "webrtc/base/sslstreamadapter.h" | 22 #include "webrtc/rtc_base/sslstreamadapter.h" |
| 23 #include "webrtc/test/field_trial.h" | 23 #include "webrtc/test/field_trial.h" |
| 24 #include "webrtc/test/testsupport/fileutils.h" | 24 #include "webrtc/test/testsupport/fileutils.h" |
| 25 | 25 |
| 26 #if defined(WEBRTC_IOS) | 26 #if defined(WEBRTC_IOS) |
| 27 #include "webrtc/test/ios/test_support.h" | 27 #include "webrtc/test/ios/test_support.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 DEFINE_bool(help, false, "prints this message"); | 30 DEFINE_bool(help, false, "prints this message"); |
| 31 DEFINE_string(log, "", "logging options to use"); | 31 DEFINE_string(log, "", "logging options to use"); |
| 32 DEFINE_string( | 32 DEFINE_string( |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 #if defined(WEBRTC_WIN) | 121 #if defined(WEBRTC_WIN) |
| 122 // Unhook crt function so that we don't ever log after statics have been | 122 // Unhook crt function so that we don't ever log after statics have been |
| 123 // uninitialized. | 123 // uninitialized. |
| 124 if (!FLAG_default_error_handlers) | 124 if (!FLAG_default_error_handlers) |
| 125 _CrtSetReportHook2(_CRT_RPTHOOK_REMOVE, TestCrtReportHandler); | 125 _CrtSetReportHook2(_CRT_RPTHOOK_REMOVE, TestCrtReportHandler); |
| 126 #endif | 126 #endif |
| 127 | 127 |
| 128 return res; | 128 return res; |
| 129 } | 129 } |
| OLD | NEW |