Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Side by Side Diff: webrtc/rtc_tools/frame_analyzer/video_quality_analysis_unittest.cc

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdio.h> 14 #include <stdio.h>
15 #include <fstream> 15 #include <fstream>
16 #include <string> 16 #include <string>
17 17
18 #include "webrtc/rtc_tools/frame_analyzer/video_quality_analysis.h"
18 #include "webrtc/test/gtest.h" 19 #include "webrtc/test/gtest.h"
19 #include "webrtc/test/testsupport/fileutils.h" 20 #include "webrtc/test/testsupport/fileutils.h"
20 #include "webrtc/tools/frame_analyzer/video_quality_analysis.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace test { 23 namespace test {
24 24
25 // Setup a log file to write the output to instead of stdout because we don't 25 // Setup a log file to write the output to instead of stdout because we don't
26 // want those numbers to be picked up as perf numbers. 26 // want those numbers to be picked up as perf numbers.
27 class VideoQualityAnalysisTest : public ::testing::Test { 27 class VideoQualityAnalysisTest : public ::testing::Test {
28 protected: 28 protected:
29 void SetUp() { 29 void SetUp() {
30 std::string log_filename = TempFilename(webrtc::test::OutputPath(), 30 std::string log_filename = TempFilename(webrtc::test::OutputPath(),
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 FILE* stats_filef = fopen(stats_filename_.c_str(), "r"); 331 FILE* stats_filef = fopen(stats_filename_.c_str(), "r");
332 ASSERT_TRUE(stats_filef != NULL); 332 ASSERT_TRUE(stats_filef != NULL);
333 333
334 auto clusters = CalculateFrameClusters(stats_filef, nullptr); 334 auto clusters = CalculateFrameClusters(stats_filef, nullptr);
335 ASSERT_EQ(0, fclose(stats_filef)); 335 ASSERT_EQ(0, fclose(stats_filef));
336 decltype(clusters) expected; 336 decltype(clusters) expected;
337 ASSERT_EQ(expected, clusters); 337 ASSERT_EQ(expected, clusters);
338 } 338 }
339 } // namespace test 339 } // namespace test
340 } // namespace webrtc 340 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/frame_analyzer/video_quality_analysis.cc ('k') | webrtc/rtc_tools/frame_editing/frame_editing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698