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

Side by Side Diff: webrtc/modules/video_processing/test/brightness_detection_test.cc

Issue 1410663004: modules/video_processing: refactor interface->include + more. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years, 1 month 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 11 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
12 #include "webrtc/modules/video_processing/main/interface/video_processing.h" 12 #include "webrtc/modules/video_processing/include/video_processing.h"
13 #include "webrtc/modules/video_processing/main/test/unit_test/video_processing_u nittest.h" 13 #include "webrtc/modules/video_processing/test/video_processing_unittest.h"
14 #include "webrtc/test/testsupport/gtest_disable.h" 14 #include "webrtc/test/testsupport/gtest_disable.h"
15 15
16 using namespace webrtc; 16 using namespace webrtc;
17 17
18 TEST_F(VideoProcessingModuleTest, DISABLED_ON_IOS(BrightnessDetection)) 18 TEST_F(VideoProcessingModuleTest, DISABLED_ON_IOS(BrightnessDetection))
19 { 19 {
20 uint32_t frameNum = 0; 20 uint32_t frameNum = 0;
21 int32_t brightnessWarning = 0; 21 int32_t brightnessWarning = 0;
22 uint32_t warningCount = 0; 22 uint32_t warningCount = 0;
23 rtc::scoped_ptr<uint8_t[]> video_buffer(new uint8_t[frame_length_]); 23 rtc::scoped_ptr<uint8_t[]> video_buffer(new uint8_t[frame_length_]);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 warningCount++; 112 warningCount++;
113 } 113 }
114 } 114 }
115 ASSERT_NE(0, feof(source_file_)) << "Error reading source file"; 115 ASSERT_NE(0, feof(source_file_)) << "Error reading source file";
116 116
117 // Expect many darkness warnings 117 // Expect many darkness warnings
118 warningProportion = static_cast<float>(warningCount) / frameNum * 100; 118 warningProportion = static_cast<float>(warningCount) / frameNum * 100;
119 printf("Dark foreman: %.1f %%\n\n", warningProportion); 119 printf("Dark foreman: %.1f %%\n\n", warningProportion);
120 EXPECT_GT(warningProportion, 90); 120 EXPECT_GT(warningProportion, 90);
121 } 121 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/spatial_resampler.cc ('k') | webrtc/modules/video_processing/test/content_metrics_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698