Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / video_engine / test / auto_test / automated / vie_standard_integration_test.cc
1 /*
2  *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10
11 // This file contains the "standard" suite of integration tests, implemented
12 // as a GUnit test. This file is a part of the effort to try to automate all
13 // tests in this section of the code. Currently, this code makes no attempt
14 // to verify any video output - it only checks for direct errors.
15
16 #include <stdio.h>
17
18 #include "gflags/gflags.h"
19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "webrtc/test/testsupport/metrics/video_metrics.h"
21 #include "webrtc/test/testsupport/metrics/video_metrics.h"
22 #include "webrtc/video_engine/test/auto_test/automated/legacy_fixture.h"
23 #include "webrtc/video_engine/test/auto_test/interface/vie_autotest.h"
24 #include "webrtc/video_engine/test/auto_test/interface/vie_autotest_window_manager_interface.h"
25 #include "webrtc/video_engine/test/auto_test/interface/vie_window_creator.h"
26 #include "webrtc/video_engine/test/libvietest/include/vie_to_file_renderer.h"
27
28 namespace {
29
30 class ViEStandardIntegrationTest : public LegacyFixture {
31 };
32
33 TEST_F(ViEStandardIntegrationTest, RunsBaseTestWithoutErrors)  {
34   tests_->ViEBaseStandardTest();
35 }
36
37 // Flaky: https://code.google.com/p/webrtc/issues/detail?id=1734
38 TEST_F(ViEStandardIntegrationTest, DISABLED_RunsCodecTestWithoutErrors)  {
39   tests_->ViECodecStandardTest();
40 }
41
42 TEST_F(ViEStandardIntegrationTest, RunsCaptureTestWithoutErrors)  {
43   tests_->ViECaptureStandardTest();
44 }
45
46 TEST_F(ViEStandardIntegrationTest, RunsImageProcessTestWithoutErrors)  {
47   tests_->ViEImageProcessStandardTest();
48 }
49
50 TEST_F(ViEStandardIntegrationTest, RunsRenderTestWithoutErrors)  {
51   tests_->ViERenderStandardTest();
52 }
53
54 // Fails on Mac, see https://code.google.com/p/webrtc/issues/detail?id=1790
55 #if defined(WEBRTC_MAC)
56 #define MAYBE_RunsRtpRtcpTestWithoutErrors DISABLED_RunsRtpRtcpTestWithoutErrors
57 #else
58 #define MAYBE_RunsRtpRtcpTestWithoutErrors RunsRtpRtcpTestWithoutErrors
59 #endif
60 TEST_F(ViEStandardIntegrationTest, MAYBE_RunsRtpRtcpTestWithoutErrors)  {
61   tests_->ViERtpRtcpStandardTest();
62 }
63
64 }  // namespace