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 "gflags/gflags.h" | 13 #include "gflags/gflags.h" |
| 14 #include "webrtc/test/field_trial.h" |
14 #include "webrtc/test/gtest.h" | 15 #include "webrtc/test/gtest.h" |
15 | |
16 #include "webrtc/test/field_trial.h" | |
17 #include "webrtc/test/run_test.h" | 16 #include "webrtc/test/run_test.h" |
18 #include "webrtc/video/video_quality_test.h" | 17 #include "webrtc/video/video_quality_test.h" |
19 | 18 |
20 namespace webrtc { | 19 namespace webrtc { |
21 namespace flags { | 20 namespace flags { |
22 | 21 |
23 // Flags common with video loopback, with different default values. | 22 // Flags common with video loopback, with different default values. |
24 DEFINE_int32(width, 1850, "Video width (crops source)."); | 23 DEFINE_int32(width, 1850, "Video width (crops source)."); |
25 size_t Width() { | 24 size_t Width() { |
26 return static_cast<size_t>(FLAGS_width); | 25 return static_cast<size_t>(FLAGS_width); |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 } // namespace webrtc | 275 } // namespace webrtc |
277 | 276 |
278 int main(int argc, char* argv[]) { | 277 int main(int argc, char* argv[]) { |
279 ::testing::InitGoogleTest(&argc, argv); | 278 ::testing::InitGoogleTest(&argc, argv); |
280 google::ParseCommandLineFlags(&argc, &argv, true); | 279 google::ParseCommandLineFlags(&argc, &argv, true); |
281 webrtc::test::InitFieldTrialsFromString( | 280 webrtc::test::InitFieldTrialsFromString( |
282 webrtc::flags::FLAGS_force_fieldtrials); | 281 webrtc::flags::FLAGS_force_fieldtrials); |
283 webrtc::test::RunTest(webrtc::Loopback); | 282 webrtc::test::RunTest(webrtc::Loopback); |
284 return 0; | 283 return 0; |
285 } | 284 } |
OLD | NEW |