| 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 |
| 11 // This test doesn't actually verify the output since it's just printed | 11 // This test doesn't actually verify the output since it's just printed |
| 12 // to stdout by void functions, but it's still useful as it executes the code. | 12 // to stdout by void functions, but it's still useful as it executes the code. |
| 13 | 13 |
| 14 #include <fstream> | 14 #include <fstream> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "webrtc/test/gtest.h" |
| 18 #include "webrtc/test/testsupport/fileutils.h" | 18 #include "webrtc/test/testsupport/fileutils.h" |
| 19 #include "webrtc/tools/frame_analyzer/video_quality_analysis.h" | 19 #include "webrtc/tools/frame_analyzer/video_quality_analysis.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 namespace test { | 22 namespace test { |
| 23 | 23 |
| 24 // Setup a log file to write the output to instead of stdout because we don't | 24 // Setup a log file to write the output to instead of stdout because we don't |
| 25 // want those numbers to be picked up as perf numbers. | 25 // want those numbers to be picked up as perf numbers. |
| 26 class VideoQualityAnalysisTest : public ::testing::Test { | 26 class VideoQualityAnalysisTest : public ::testing::Test { |
| 27 protected: | 27 protected: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 stats_file << "frame_0003 0101\n"; | 82 stats_file << "frame_0003 0101\n"; |
| 83 stats_file << "frame_0004 0106\n"; | 83 stats_file << "frame_0004 0106\n"; |
| 84 stats_file.close(); | 84 stats_file.close(); |
| 85 | 85 |
| 86 PrintMaxRepeatedAndSkippedFrames(logfile_, "NormalStatsFile", stats_filename); | 86 PrintMaxRepeatedAndSkippedFrames(logfile_, "NormalStatsFile", stats_filename); |
| 87 } | 87 } |
| 88 | 88 |
| 89 | 89 |
| 90 } // namespace test | 90 } // namespace test |
| 91 } // namespace webrtc | 91 } // namespace webrtc |
| OLD | NEW |