OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/crypto.gni") | 9 import("//build/config/crypto.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 config("rtc_base_tests_utils_warnings_config") { | 701 config("rtc_base_tests_utils_warnings_config") { |
702 if (is_win && is_clang) { | 702 if (is_win && is_clang) { |
703 cflags = [ | 703 cflags = [ |
704 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6270 | 704 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6270 |
705 "-Wno-reorder", | 705 "-Wno-reorder", |
706 "-Wno-sign-compare", | 706 "-Wno-sign-compare", |
707 ] | 707 ] |
708 } | 708 } |
709 } | 709 } |
710 | 710 |
| 711 # Test utilities only depending on base_approved. |
| 712 rtc_source_set("rtc_base_approved_tests_utils") { |
| 713 testonly = true |
| 714 sources = [ |
| 715 "fakeclock.cc", |
| 716 "fakeclock.h", |
| 717 "testbase64.h", |
| 718 "timedelta.h", |
| 719 ] |
| 720 configs += [ ":rtc_base_tests_utils_warnings_config" ] |
| 721 public_configs = [ ":rtc_base_tests_utils_exported_config" ] |
| 722 deps = [ |
| 723 ":rtc_base_approved", |
| 724 "../test:test_support", |
| 725 ] |
| 726 |
| 727 if (!build_with_chromium && is_clang) { |
| 728 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 729 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 730 } |
| 731 } |
| 732 |
711 rtc_source_set("rtc_base_tests_utils") { | 733 rtc_source_set("rtc_base_tests_utils") { |
712 testonly = true | 734 testonly = true |
713 sources = [ | 735 sources = [ |
714 # Also use this as a convenient dumping ground for misc files that are | 736 # Also use this as a convenient dumping ground for misc files that are |
715 # included by multiple targets below. | 737 # included by multiple targets below. |
716 "fakeclock.cc", | |
717 "fakeclock.h", | |
718 "fakenetwork.h", | 738 "fakenetwork.h", |
719 "fakesslidentity.h", | 739 "fakesslidentity.h", |
720 "faketaskrunner.h", | 740 "faketaskrunner.h", |
721 "firewallsocketserver.cc", | 741 "firewallsocketserver.cc", |
722 "firewallsocketserver.h", | 742 "firewallsocketserver.h", |
723 "gunit.h", | 743 "gunit.h", |
724 "natserver.cc", | 744 "natserver.cc", |
725 "natserver.h", | 745 "natserver.h", |
726 "natsocketfactory.cc", | 746 "natsocketfactory.cc", |
727 "natsocketfactory.h", | 747 "natsocketfactory.h", |
728 "nattypes.cc", | 748 "nattypes.cc", |
729 "nattypes.h", | 749 "nattypes.h", |
730 "sigslottester.h", | 750 "sigslottester.h", |
731 "sigslottester.h.pump", | 751 "sigslottester.h.pump", |
732 "testbase64.h", | |
733 "testechoserver.h", | 752 "testechoserver.h", |
734 "testutils.h", | 753 "testutils.h", |
735 "timedelta.h", | |
736 "unittest_main.cc", | 754 "unittest_main.cc", |
737 ] | 755 ] |
738 configs += [ ":rtc_base_tests_utils_warnings_config" ] | 756 configs += [ ":rtc_base_tests_utils_warnings_config" ] |
739 public_configs = [ ":rtc_base_tests_utils_exported_config" ] | 757 public_configs = [ ":rtc_base_tests_utils_exported_config" ] |
740 deps = [ | 758 deps = [ |
741 ":rtc_base", | 759 ":rtc_base", |
| 760 ":rtc_base_approved_tests_utils", |
742 "../test:field_trial", | 761 "../test:field_trial", |
743 "../test:test_support", | 762 "../test:test_support", |
744 ] | 763 ] |
745 public_deps = [ | 764 public_deps = [ |
746 "//testing/gmock", | 765 "//testing/gmock", |
747 "//testing/gtest", | 766 "//testing/gtest", |
748 ] | 767 ] |
749 | 768 |
750 if (!build_with_chromium && is_clang) { | 769 if (!build_with_chromium && is_clang) { |
751 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 770 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 "java/src/org/webrtc/Logging.java", | 955 "java/src/org/webrtc/Logging.java", |
937 "java/src/org/webrtc/Size.java", | 956 "java/src/org/webrtc/Size.java", |
938 "java/src/org/webrtc/ThreadUtils.java", | 957 "java/src/org/webrtc/ThreadUtils.java", |
939 ] | 958 ] |
940 | 959 |
941 deps = [ | 960 deps = [ |
942 "//base:base_java", | 961 "//base:base_java", |
943 ] | 962 ] |
944 } | 963 } |
945 } | 964 } |
OLD | NEW |