From 4b1bf6c2f02e4be5a81965b125e7472a7dc8dff2 Mon Sep 17 00:00:00 2001 From: deadbeef Date: Wed, 22 Feb 2017 23:45:38 -0800 Subject: [PATCH] Adding placeholder ortc_unittests target. This will allow the trybots to be updated to start running this new test executable, so that they can be used when landing this CL which will replace the dummy test with real tests: https://codereview.webrtc.org/2675173003/ BUG=webrtc:7013 TBR=tommi@webrtc.org Review-Url: https://codereview.webrtc.org/2707013005 Cr-Commit-Position: refs/heads/master@{#16784} --- webrtc/BUILD.gn | 1 + webrtc/ortc/BUILD.gn | 31 +++++++++++++++++++++++++++++++ webrtc/ortc/dummy_test.cc | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 webrtc/ortc/BUILD.gn create mode 100644 webrtc/ortc/dummy_test.cc diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn index e94e33968c..e461af2b3a 100644 --- a/webrtc/BUILD.gn +++ b/webrtc/BUILD.gn @@ -299,6 +299,7 @@ if (!build_with_chromium) { "modules/rtp_rtcp:test_packet_masks_metrics", "modules/video_capture:video_capture_internal_impl", "modules/video_coding:plot_videoprocessor_integrationtest", + "ortc:ortc_unittests", "pc:peerconnection_unittests", "pc:rtc_pc_unittests", "stats:rtc_stats_unittests", diff --git a/webrtc/ortc/BUILD.gn b/webrtc/ortc/BUILD.gn new file mode 100644 index 0000000000..a9195110c7 --- /dev/null +++ b/webrtc/ortc/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. +# +# Use of this source code is governed by a BSD-style license +# that can be found in the LICENSE file in the root of the source +# tree. An additional intellectual property rights grant can be found +# in the file PATENTS. All contributing project authors may +# be found in the AUTHORS file in the root of the source tree. + +import("../webrtc.gni") +if (is_android) { + import("//build/config/android/config.gni") + import("//build/config/android/rules.gni") +} + +if (rtc_include_tests) { + rtc_test("ortc_unittests") { + testonly = true + + sources = [ + "dummy_test.cc", + ] + + deps = [ + "../base:rtc_base_tests_main", + ] + + if (is_android) { + deps += [ "//testing/android/native_test:native_test_support" ] + } + } +} diff --git a/webrtc/ortc/dummy_test.cc b/webrtc/ortc/dummy_test.cc new file mode 100644 index 0000000000..1e0dc41da5 --- /dev/null +++ b/webrtc/ortc/dummy_test.cc @@ -0,0 +1,16 @@ +/* + * Copyright 2017 The WebRTC Project Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. An additional intellectual property rights grant can be found + * in the file PATENTS. All contributing project authors may + * be found in the AUTHORS file in the root of the source tree. + */ + +#include "webrtc/test/gtest.h" + +// This is just a placeholder test so that trybots can be updated to run the +// new "ortc_unittests" target. +TEST(DummyOrtcTest, Test) { +}