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/api/video/i420_buffer.h" |
14 #include "webrtc/base/logging.h" | 15 #include "webrtc/base/logging.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 { |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 vie_encoder_->Stop(); | 965 vie_encoder_->Stop(); |
965 | 966 |
966 stats_proxy_.reset(); | 967 stats_proxy_.reset(); |
967 EXPECT_EQ(1, | 968 EXPECT_EQ(1, |
968 metrics::NumSamples("WebRTC.Video.CpuLimitedResolutionInPercent")); | 969 metrics::NumSamples("WebRTC.Video.CpuLimitedResolutionInPercent")); |
969 EXPECT_EQ( | 970 EXPECT_EQ( |
970 1, metrics::NumEvents("WebRTC.Video.CpuLimitedResolutionInPercent", 50)); | 971 1, metrics::NumEvents("WebRTC.Video.CpuLimitedResolutionInPercent", 50)); |
971 } | 972 } |
972 | 973 |
973 } // namespace webrtc | 974 } // namespace webrtc |
OLD | NEW |