diff --git a/webrtc/rtc_unittests.isolate b/webrtc/rtc_unittests.isolate new file mode 100644 index 000000000..7bcfc8548 --- /dev/null +++ b/webrtc/rtc_unittests.isolate @@ -0,0 +1,24 @@ +# Copyright (c) 2014 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. +{ + 'conditions': [ + ['OS=="linux" or OS=="mac" or OS=="win"', { + 'variables': { + 'command': [ + '<(PRODUCT_DIR)/rtc_unittests<(EXECUTABLE_SUFFIX)', + ], + 'isolate_dependency_tracked': [ + '<(PRODUCT_DIR)/rtc_unittests<(EXECUTABLE_SUFFIX)', + ], + 'isolate_dependency_untracked': [ + '<(DEPTH)/tools/swarming_client/', + ], + }, + }], + ], +} diff --git a/webrtc/sound/sound_tests.gyp b/webrtc/sound/sound_tests.gyp index 3fe3574c6..fbbb41059 100644 --- a/webrtc/sound/sound_tests.gyp +++ b/webrtc/sound/sound_tests.gyp @@ -10,40 +10,14 @@ 'includes': [ '../build/common.gypi', ], 'targets': [ { - 'target_name': 'rtc_sound_unittest', - 'type': 'executable', - 'dependencies': [ - '<(DEPTH)/testing/gtest.gyp:gtest', - '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', - '<(webrtc_root)/sound/sound.gyp:rtc_sound', - ], - 'cflags_cc!': [ - '-Wnon-virtual-dtor', - ], - 'sources': [ - 'automaticallychosensoundsystem_unittest.cc', - ], + 'target_name': 'rtc_sound_tests', + 'type': 'none', + 'direct_dependent_settings': { + 'sources': [ + 'automaticallychosensoundsystem_unittest.cc', + ], + }, }, ], - 'conditions': [ - ['test_isolation_mode != "noop"', { - 'targets': [ - { - 'target_name': 'rtc_sound_unittest_run', - 'type': 'none', - 'dependencies': [ - 'rtc_sound_unittest', - ], - 'includes': [ - '../build/isolate.gypi', - 'rtc_sound_unittest.isolate', - ], - 'sources': [ - 'rtc_sound_unittest.isolate', - ], - }, - ], - }], - ], } diff --git a/webrtc/webrtc_tests.gypi b/webrtc/webrtc_tests.gypi index 1d862c654..6def87b4f 100644 --- a/webrtc/webrtc_tests.gypi +++ b/webrtc/webrtc_tests.gypi @@ -14,6 +14,8 @@ 'base/base.gyp:rtc_base', 'base/base_tests.gyp:rtc_base_tests_utils', 'base/base_tests.gyp:rtc_base_tests', + 'sound/sound.gyp:rtc_sound', + 'sound/sound_tests.gyp:rtc_sound_tests', '<(DEPTH)/testing/gtest.gyp:gtest', ], }, @@ -155,6 +157,20 @@ }], ['test_isolation_mode != "noop"', { 'targets': [ + { + 'target_name': 'rtc_unittests_run', + 'type': 'none', + 'dependencies': [ + 'rtc_unittests', + ], + 'includes': [ + 'build/isolate.gypi', + 'rtc_unittests.isolate', + ], + 'sources': [ + 'rtc_unittests.isolate', + ], + }, { 'target_name': 'video_engine_tests_run', 'type': 'none',