| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #include <limits> | 11 #include <limits> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "webrtc/base/logging.h" | 14 #include "webrtc/base/logging.h" |
| 15 #include "webrtc/common_video/include/video_frame_buffer.h" |
| 15 #include "webrtc/system_wrappers/include/metrics_default.h" | 16 #include "webrtc/system_wrappers/include/metrics_default.h" |
| 16 #include "webrtc/test/encoder_settings.h" | 17 #include "webrtc/test/encoder_settings.h" |
| 17 #include "webrtc/test/fake_encoder.h" | 18 #include "webrtc/test/fake_encoder.h" |
| 18 #include "webrtc/test/frame_generator.h" | 19 #include "webrtc/test/frame_generator.h" |
| 19 #include "webrtc/test/gtest.h" | 20 #include "webrtc/test/gtest.h" |
| 20 #include "webrtc/video/send_statistics_proxy.h" | 21 #include "webrtc/video/send_statistics_proxy.h" |
| 21 #include "webrtc/video/vie_encoder.h" | 22 #include "webrtc/video/vie_encoder.h" |
| 22 | 23 |
| 23 namespace webrtc { | 24 namespace webrtc { |
| 24 | 25 |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 vie_encoder_->Stop(); | 637 vie_encoder_->Stop(); |
| 637 | 638 |
| 638 stats_proxy_.reset(); | 639 stats_proxy_.reset(); |
| 639 EXPECT_EQ(1, | 640 EXPECT_EQ(1, |
| 640 metrics::NumSamples("WebRTC.Video.CpuLimitedResolutionInPercent")); | 641 metrics::NumSamples("WebRTC.Video.CpuLimitedResolutionInPercent")); |
| 641 EXPECT_EQ( | 642 EXPECT_EQ( |
| 642 1, metrics::NumEvents("WebRTC.Video.CpuLimitedResolutionInPercent", 50)); | 643 1, metrics::NumEvents("WebRTC.Video.CpuLimitedResolutionInPercent", 50)); |
| 643 } | 644 } |
| 644 | 645 |
| 645 } // namespace webrtc | 646 } // namespace webrtc |
| OLD | NEW |