| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Define |x_label| and |y_label| for plots. | 121 // Define |x_label| and |y_label| for plots. |
| 122 #define BWE_TEST_LOGGING_LABEL(figure, x_label, y_label, num_flows) | 122 #define BWE_TEST_LOGGING_LABEL(figure, x_label, y_label, num_flows) |
| 123 | 123 |
| 124 #else // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE | 124 #else // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE |
| 125 | 125 |
| 126 #include <map> | 126 #include <map> |
| 127 #include <memory> | 127 #include <memory> |
| 128 #include <stack> | 128 #include <stack> |
| 129 #include <string> | 129 #include <string> |
| 130 | 130 |
| 131 #include "webrtc/base/constructormagic.h" |
| 132 #include "webrtc/base/criticalsection.h" |
| 131 #include "webrtc/common_types.h" | 133 #include "webrtc/common_types.h" |
| 132 #include "webrtc/rtc_base/constructormagic.h" | |
| 133 #include "webrtc/rtc_base/criticalsection.h" | |
| 134 | 134 |
| 135 #define BWE_TEST_LOGGING_GLOBAL_CONTEXT(name) \ | 135 #define BWE_TEST_LOGGING_GLOBAL_CONTEXT(name) \ |
| 136 do { \ | 136 do { \ |
| 137 webrtc::testing::bwe::Logging::GetInstance()->SetGlobalContext(name); \ | 137 webrtc::testing::bwe::Logging::GetInstance()->SetGlobalContext(name); \ |
| 138 } while (0) | 138 } while (0) |
| 139 | 139 |
| 140 #define BWE_TEST_LOGGING_GLOBAL_ENABLE(enabled) \ | 140 #define BWE_TEST_LOGGING_GLOBAL_ENABLE(enabled) \ |
| 141 do { \ | 141 do { \ |
| 142 webrtc::testing::bwe::Logging::GetInstance()->SetGlobalEnable(enabled); \ | 142 webrtc::testing::bwe::Logging::GetInstance()->SetGlobalEnable(enabled); \ |
| 143 } while (0) | 143 } while (0) |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 ThreadMap thread_map_; | 342 ThreadMap thread_map_; |
| 343 | 343 |
| 344 RTC_DISALLOW_COPY_AND_ASSIGN(Logging); | 344 RTC_DISALLOW_COPY_AND_ASSIGN(Logging); |
| 345 }; | 345 }; |
| 346 } // namespace bwe | 346 } // namespace bwe |
| 347 } // namespace testing | 347 } // namespace testing |
| 348 } // namespace webrtc | 348 } // namespace webrtc |
| 349 | 349 |
| 350 #endif // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE | 350 #endif // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE |
| 351 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_LOGGING_H_ | 351 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_LOGGING_H_ |
| OLD | NEW |