OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 <stdio.h> | 11 #include <stdio.h> |
12 | 12 |
13 #include <map> | |
14 | |
15 #include "gflags/gflags.h" | 13 #include "gflags/gflags.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
17 | 15 |
18 #include "webrtc/test/field_trial.h" | 16 #include "webrtc/test/field_trial.h" |
19 #include "webrtc/test/run_test.h" | 17 #include "webrtc/test/run_test.h" |
20 #include "webrtc/typedefs.h" | |
21 #include "webrtc/video/video_quality_test.h" | 18 #include "webrtc/video/video_quality_test.h" |
22 | 19 |
23 namespace webrtc { | 20 namespace webrtc { |
24 | |
25 namespace flags { | 21 namespace flags { |
26 | 22 |
27 DEFINE_int32(width, 640, "Video width."); | 23 DEFINE_int32(width, 640, "Video width."); |
28 size_t Width() { | 24 size_t Width() { |
29 return static_cast<size_t>(FLAGS_width); | 25 return static_cast<size_t>(FLAGS_width); |
30 } | 26 } |
31 | 27 |
32 DEFINE_int32(height, 480, "Video height."); | 28 DEFINE_int32(height, 480, "Video height."); |
33 size_t Height() { | 29 size_t Height() { |
34 return static_cast<size_t>(FLAGS_height); | 30 return static_cast<size_t>(FLAGS_height); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 } // namespace webrtc | 178 } // namespace webrtc |
183 | 179 |
184 int main(int argc, char* argv[]) { | 180 int main(int argc, char* argv[]) { |
185 ::testing::InitGoogleTest(&argc, argv); | 181 ::testing::InitGoogleTest(&argc, argv); |
186 google::ParseCommandLineFlags(&argc, &argv, true); | 182 google::ParseCommandLineFlags(&argc, &argv, true); |
187 webrtc::test::InitFieldTrialsFromString( | 183 webrtc::test::InitFieldTrialsFromString( |
188 webrtc::flags::FLAGS_force_fieldtrials); | 184 webrtc::flags::FLAGS_force_fieldtrials); |
189 webrtc::test::RunTest(webrtc::Loopback); | 185 webrtc::test::RunTest(webrtc::Loopback); |
190 return 0; | 186 return 0; |
191 } | 187 } |
OLD | NEW |